From 3fad4949b19bea137b54294e29e2d9b361acb180 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Fri, 9 Jan 2026 19:13:21 +0100 Subject: [PATCH] call an detector --- include/change_detector.h | 4 ++++ src/gui.cpp | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/include/change_detector.h b/include/change_detector.h index 39533e1..a17d304 100644 --- a/include/change_detector.h +++ b/include/change_detector.h @@ -19,6 +19,10 @@ public: value = v; } + void call() { + for (size_t i = 0; i < MaxObservers; ++i) seen[i] = false; + } + bool changed(size_t id) { if (id >= MaxObservers) return false; if (!seen[id]) { diff --git a/src/gui.cpp b/src/gui.cpp index ea4f698..723fb06 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -2992,6 +2992,18 @@ void BuildAdvancedRDS() { eonDisplay.reset(); eccDisplay.reset(); rtDisplay.reset(); + radio.rds.PTY.call(); + radio.rds.PTYN.call(); + radio.rds.ECC.call(); + radio.rds.hasArtificialhead.call(); + radio.rds.hasCompressed.call(); + radio.rds.hasStereo.call(); + radio.rds.TP.call(); + radio.rds.TA.call(); + radio.rds.hasEON.call(); + radio.rds.hasTMC.call(); + radio.rds.hasCT.call(); + radio.rds.hasRTplus.call(); } void BuildDisplay() { @@ -3109,6 +3121,18 @@ void BuildDisplay() { eonDisplay.reset(); eccDisplay.reset(); rtDisplay.reset(); + radio.rds.PTY.call(); + radio.rds.PTYN.call(); + radio.rds.ECC.call(); + radio.rds.hasArtificialhead.call(); + radio.rds.hasCompressed.call(); + radio.rds.hasStereo.call(); + radio.rds.TP.call(); + radio.rds.TA.call(); + radio.rds.hasEON.call(); + radio.rds.hasTMC.call(); + radio.rds.hasCT.call(); + radio.rds.hasRTplus.call(); xPos = 0; xPos2 = 0; MPold = 99;