From 466bd6d59669fd85b2d26ca9bc8ce3d414944250 Mon Sep 17 00:00:00 2001 From: Scott Powell Date: Fri, 13 Jun 2025 14:25:09 +1000 Subject: [PATCH] * fix for when AGC reset is disabled (interval = 0) --- src/Dispatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dispatcher.cpp b/src/Dispatcher.cpp index da34bd35..7f39dc49 100644 --- a/src/Dispatcher.cpp +++ b/src/Dispatcher.cpp @@ -92,7 +92,7 @@ void Dispatcher::loop() { next_agc_reset_time = futureMillis(getAGCResetInterval()); } - if (millisHasNowPassed(next_agc_reset_time)) { + if (getAGCResetInterval() > 0 && millisHasNowPassed(next_agc_reset_time)) { _radio->resetAGC(); next_agc_reset_time = futureMillis(getAGCResetInterval()); }