From 61eec6e1d5dc9877cab01523c6279fdc3d13d5ec Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Sun, 10 Sep 2023 21:02:42 +0200 Subject: [PATCH] Fix where LIC was not refreshed --- src/rds.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rds.cpp b/src/rds.cpp index 699a3ef..489ace0 100644 --- a/src/rds.cpp +++ b/src/rds.cpp @@ -44,7 +44,7 @@ void ShowAdvancedRDS() { rdsstereoold = radio.rds.hasStereo; } - if (ptynold != radio.rds.PTYN) { + if (ptynold != radio.rds.PTYN || rdsreset) { if (!screenmute) tftPrint(-1, "PTYN N/A", 216, 109, BackgroundColor, BackgroundColor, 16); if (!screenmute) tftPrint(-1, ptynold, 216, 109, BackgroundColor, BackgroundColor, 16); if (radio.rds.PTYN.length() == 0) radio.rds.PTYN = "PTYN N/A"; @@ -52,7 +52,7 @@ void ShowAdvancedRDS() { ptynold = radio.rds.PTYN; } - if (licold != radio.rds.LIC) { + if (licold != radio.rds.LIC || rdsreset) { if (!screenmute) tftPrint(-1, "N/A", 242, 208, BackgroundColor, BackgroundColor, 16); if (!screenmute) tftPrint(-1, LIColdString, 242, 208, BackgroundColor, BackgroundColor, 16);