* fix for when AGC reset is disabled (interval = 0)

Tento commit je obsažen v:
Scott Powell
2025-06-13 14:25:09 +10:00
rodič 32ca3dc9d0
revize 466bd6d596
+1 -1
Zobrazit soubor
@@ -92,7 +92,7 @@ void Dispatcher::loop() {
next_agc_reset_time = futureMillis(getAGCResetInterval()); next_agc_reset_time = futureMillis(getAGCResetInterval());
} }
if (millisHasNowPassed(next_agc_reset_time)) { if (getAGCResetInterval() > 0 && millisHasNowPassed(next_agc_reset_time)) {
_radio->resetAGC(); _radio->resetAGC();
next_agc_reset_time = futureMillis(getAGCResetInterval()); next_agc_reset_time = futureMillis(getAGCResetInterval());
} }