Skip to content

Commit

Permalink
Fixed en/decoding of Radioddity channed tx freq.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmatuschek committed Nov 22, 2024
1 parent c98d92a commit daf099b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/radioddity_codeplug.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit daf099b

Please sign in to comment.