From b6d3fe47b5dc6be254d67ac94245caaeae0d1aa2 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sun, 10 May 2020 11:13:55 -0700 Subject: [PATCH] cleaned up module ack switch --- QnetDVRPTR.cpp | 4 ++-- QnetLink.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/QnetDVRPTR.cpp b/QnetDVRPTR.cpp index 352fcd5..4081680 100644 --- a/QnetDVRPTR.cpp +++ b/QnetDVRPTR.cpp @@ -89,7 +89,7 @@ static int RF_AUDIO_Level = 10; static bool DUPLEX = true; static int ACK_DELAY = 200000; static int DELAY_BETWEEN = 20000; -static bool RPTR_ACK = true; +static bool RPTR_ACK = false; static char ENABLE_RF[CALL_SIZE + 1]; static char DISABLE_RF[CALL_SIZE + 1]; static bool IS_ENABLED = true; @@ -1423,7 +1423,7 @@ static bool ReadConfig(const char *cfgFile) cfg.GetValue(path+"_acknowledge", type, RPTR_ACK); cfg.GetValue(path+"_ack_delay", type, ACK_DELAY, 1, 999); - ACK_DELAY *= 1000; // from milliseconds to seconds + ACK_DELAY *= 1000; // from milliseconds to mircroseconds cfg.GetValue(path+"_tx_delay", type, TX_DELAY, 0, 6000); Modem_Init2[8] = TX_DELAY & 0xFF; diff --git a/QnetLink.cpp b/QnetLink.cpp index 1359204..3e3af14 100644 --- a/QnetLink.cpp +++ b/QnetLink.cpp @@ -3028,7 +3028,8 @@ void CQnetLink::Process() qnDB.ClearGW(); LoadGateways(gwys); loadG[i] = false; - rptr_ack(i); + if (bool_rptr_ack) + rptr_ack(i); } } }