From 4fb4712a3348e58f229d103a9a291eb7da9c7082 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Wed, 14 Aug 2024 13:37:52 -0400 Subject: [PATCH] backupDigimode avoided in only rx mode --- src/LoRa_APRS_iGate.cpp | 2 +- src/gps_utils.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LoRa_APRS_iGate.cpp b/src/LoRa_APRS_iGate.cpp index b59afc98..4e6f5c70 100644 --- a/src/LoRa_APRS_iGate.cpp +++ b/src/LoRa_APRS_iGate.cpp @@ -162,7 +162,7 @@ void loop() { APRS_IS_Utils::processLoRaPacket(packet); // Send received packet to APRSIS } - if (Config.digi.mode == 2 || Config.digi.mode == 3 || backUpDigiMode) { // If Digi enabled + if (Config.loramodule.txActive && (Config.digi.mode == 2 || Config.digi.mode == 3 || backUpDigiMode)) { // If Digi enabled STATION_Utils::clean25SegBuffer(); DIGI_Utils::processLoRaPacket(packet); // Send received packet to Digi } diff --git a/src/gps_utils.cpp b/src/gps_utils.cpp index b8efbbba..d1210bd3 100644 --- a/src/gps_utils.cpp +++ b/src/gps_utils.cpp @@ -63,6 +63,7 @@ namespace GPS_Utils { Config.aprs_is.objectsToRF = false; Config.beacon.sendViaRF = false; Config.digi.mode = 0; + Config.backupDigiMode = false; } String beaconPacket = Config.callsign; beaconPacket += ">APLRG1";