From ca6a9957d242f09f7d08ed08fc48747f381b6616 Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Sun, 8 Oct 2023 22:09:08 +0200 Subject: [PATCH] When in screenmute quality data was not polled, so AF could not work correct. --- TEF6686_ESP32.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index a182767..21cf98c 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -795,7 +795,7 @@ void loop() { if (millis() >= lowsignaltimer + 300) { lowsignaltimer = millis(); - if (!screenmute || (screenmute && (XDRGTKTCP || XDRGTKUSB))) { + if (af || (!screenmute || (screenmute && (XDRGTKTCP || XDRGTKUSB)))) { if (band < BAND_GAP) { radio.getStatus(SStatus, USN, WAM, OStatus, BW, MStatus, CN); } else { @@ -810,7 +810,7 @@ void loop() { } } else { - if (!screenmute || (screenmute && (XDRGTKTCP || XDRGTKUSB))) { + if (af || (!screenmute || (screenmute && (XDRGTKTCP || XDRGTKUSB)))) { if (band < BAND_GAP) { radio.getStatus(SStatus, USN, WAM, OStatus, BW, MStatus, CN); } else { @@ -2256,7 +2256,7 @@ void ShowFreq(int mode) { Udp.endPacket(); } tuningtimer = millis(); - + if (!rdsflagreset && !screenmute && !afscreen) { ShowRDSLogo(false); sprite.fillSprite(BackgroundColor); @@ -2889,7 +2889,7 @@ void ShowBattery() { uint16_t v = analogRead(BATTERY_PIN); battery = map(constrain(v, BAT_LEVEL_EMPTY, BAT_LEVEL_FULL), BAT_LEVEL_EMPTY, BAT_LEVEL_FULL, 0, BAT_LEVEL_STAGE); - + if (batteryold != battery) { if (!wifi && batterydetect) { if (battery == 0) {