From daf099bc2c1119c47767931f4662163d383a7508 Mon Sep 17 00:00:00 2001 From: Hannes Matuschek Date: Fri, 22 Nov 2024 13:14:51 +0100 Subject: [PATCH] Fixed en/decoding of Radioddity channed tx freq. --- lib/radioddity_codeplug.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/radioddity_codeplug.cc b/lib/radioddity_codeplug.cc index 913d9d11..5ff33bbe 100644 --- a/lib/radioddity_codeplug.cc +++ b/lib/radioddity_codeplug.cc @@ -78,11 +78,11 @@ RadioddityCodeplug::ChannelElement::setRXFrequency(uint32_t freq) { } uint32_t RadioddityCodeplug::ChannelElement::txFrequency() const { - return getBCD8_le(Offset::rxFrequency())*10; + return getBCD8_le(Offset::txFrequency())*10; } void RadioddityCodeplug::ChannelElement::setTXFrequency(uint32_t freq) { - setBCD8_le(Offset::rxFrequency(), freq/10); + setBCD8_le(Offset::txFrequency(), freq/10); } RadioddityCodeplug::ChannelElement::Mode