From ce1bdba4113732c13cdaadd7896a17c750e820bd Mon Sep 17 00:00:00 2001 From: Piotr Majkrzak Date: Tue, 21 Feb 2023 15:12:33 +0100 Subject: [PATCH] Enable APRS RX only on the APRS revert channel (#310) --- lib/d878uv_codeplug.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/d878uv_codeplug.cc b/lib/d878uv_codeplug.cc index 551edc4f..8b0b71d4 100644 --- a/lib/d878uv_codeplug.cc +++ b/lib/d878uv_codeplug.cc @@ -239,7 +239,6 @@ D878UVCodeplug::ChannelElement::fromChannelObj(const Channel *c, Context &ctx) { enableTXDigitalAPRS(true); setDigitalAPRSSystemIndex(ctx.index(dc->aprsObj()->as())); } else if (dc->aprsObj() && dc->aprsObj()->is()) { - enableRXAPRS(true); enableTXAnalogAPRS(true); } // Enable roaming @@ -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()) {