Skip to content

Commit

Permalink
Enable APRS RX only on the APRS revert channel (hmatuschek#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
majkrzak authored and jazzcat committed Mar 2, 2023
1 parent 56f93e1 commit ce1bdba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/d878uv_codeplug.cc
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ D878UVCodeplug::ChannelElement::fromChannelObj(const Channel *c, Context &ctx) {
enableTXDigitalAPRS(true);
setDigitalAPRSSystemIndex(ctx.index(dc->aprsObj()->as<GPSSystem>()));
} else if (dc->aprsObj() && dc->aprsObj()->is<APRSSystem>()) {
enableRXAPRS(true);
enableTXAnalogAPRS(true);
}
// Enable roaming
Expand All @@ -257,7 +256,9 @@ D878UVCodeplug::ChannelElement::fromChannelObj(const Channel *c, Context &ctx) {
enableRXAPRS(false);
if (nullptr != ac->aprsSystem()) {
enableTXAnalogAPRS(true);
enableRXAPRS(true);
if (ac == ac->aprsSystem()->revertChannel()) {
enableRXAPRS(true);
}
}
// Apply extension settings
if (AnytoneFMChannelExtension *ext = ac->anytoneChannelExtension()) {
Expand Down

0 comments on commit ce1bdba

Please sign in to comment.