Only log RT in scanner when holdtime > 5 seconds

This commit is contained in:
Sjef Verhoeven PE5PVB
2025-02-26 11:14:27 +01:00
parent 25a8c4124c
commit 4d72dfe131
2 changed files with 2 additions and 1 deletions

View File

@@ -271,7 +271,7 @@ byte addRowToCSV() {
// Replace commas in the station name and radio text to avoid CSV conflicts // Replace commas in the station name and radio text to avoid CSV conflicts
String stationName = radio.rds.stationName; String stationName = radio.rds.stationName;
String radioTextModified = radioText; String radioTextModified = (scanhold > 4 ? radioText : "");
stationName.replace(",", " "); // Replace commas in station name stationName.replace(",", " "); // Replace commas in station name
radioTextModified.replace(",", " "); // Replace commas in radio text radioTextModified.replace(",", " "); // Replace commas in radio text

View File

@@ -16,6 +16,7 @@ extern bool scandxmode;
extern byte band; extern byte band;
extern byte chipmodel; extern byte chipmodel;
extern byte language; extern byte language;
extern byte scanhold;
extern byte unit; extern byte unit;
extern int16_t SStatus; extern int16_t SStatus;
extern int8_t NTPoffset; extern int8_t NTPoffset;