From 0dc6044a57930b0ff2c3036f9992e65907e129ce Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Mon, 19 Feb 2024 21:15:42 +0100 Subject: [PATCH] Bugfix in mutescreen routine --- TEF6686_ESP32.ino | 2 +- src/rds.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index 40bc046..6c196e3 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -1007,7 +1007,7 @@ void GetData() { if (advancedRDS && !afscreen && !screenmute) ShowAdvancedRDS(); if (afscreen && !screenmute) ShowAFEON(); if (!afscreen) { - ShowErrors(); + if (!screenmute) ShowErrors(); showPTY(); showECC(); showRadioText(); diff --git a/src/rds.cpp b/src/rds.cpp index f287120..cc6ac1f 100644 --- a/src/rds.cpp +++ b/src/rds.cpp @@ -587,11 +587,11 @@ void showPI() { PIold = radio.rds.picode; stationIDold = radio.rds.stationID; stationStateold = radio.rds.stationState; - if (wifi) { - Udp.beginPacket(remoteip, 9030); - Udp.print("from=TEF_tuner " + String(stationlistid, DEC) + ";PI=" + String(radio.rds.picode, 4)); - Udp.endPacket(); - } + } + if (wifi) { + Udp.beginPacket(remoteip, 9030); + Udp.print("from=TEF_tuner " + String(stationlistid, DEC) + ";PI=" + String(radio.rds.picode, 4)); + Udp.endPacket(); } } }