From 95c405ed541d4a03112658ffd43d0363d6b1a132 Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Fri, 13 Oct 2023 22:53:56 +0200 Subject: [PATCH] Add extra TMC detection --- src/TEF6686.cpp | 4 ++++ src/constants.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/TEF6686.cpp b/src/TEF6686.cpp index 21ef3ac..48459a6 100644 --- a/src/TEF6686.cpp +++ b/src/TEF6686.cpp @@ -766,6 +766,10 @@ void TEF6686::readRDS(byte showrdserrors) rds.aid_counter++; } + if (rds.rdsD == 0xCD46) { // Check for RT+ application + rds.hasTMC = true; // TMC flag + } + // RT+ init if (rds.rdsD == 0x4BD7) { // Check for RT+ application rds.hasRDSplus = true; // Set flag diff --git a/src/constants.h b/src/constants.h index f9f160b..d0612df 100644 --- a/src/constants.h +++ b/src/constants.h @@ -106,7 +106,7 @@ // EEPROM index defines #define EE_PRESETS_CNT 99 -#define EE_CHECKBYTE_VALUE 34 // 0 ~ 255,add new entry, change for new value +#define EE_CHECKBYTE_VALUE 35 // 0 ~ 255,add new entry, change for new value #define EE_TOTAL_CNT 618 #define EE_UINT16_FREQUENCY_FM 0