From 2212e3bafd501c8d5fed80b1f5e66a40fe285b3d Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Fri, 12 Apr 2024 10:50:54 +0200 Subject: [PATCH] Fix where during screenmute signaldetection on DX scan didn't work --- TEF6686_ESP32.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index 78aa1d0..b8c4bfb 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -802,9 +802,10 @@ void loop() { if (digitalRead(BANDBUTTON) == LOW ) BANDBUTTONPress(); if (scandxmode) { + if (screenmute) radio.getStatus(SStatus, USN, WAM, OStatus, BW, MStatus, CN); switch (scancancel) { case CORRECTPI: if (radio.rds.correctPI != 0) cancelDXScan(); break; - case SIGNAL: if (tuned) cancelDXScan(); break; + case SIGNAL: if (USN < 250 && WAM < 250 && OStatus > -250 && OStatus < 250 && !SQ) cancelDXScan(); break; } if (millis() >= flashingtimer + 500) {