From 4d72dfe131c11e43695a68aed2eb3c59cdfa5da9 Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Wed, 26 Feb 2025 11:14:27 +0100 Subject: [PATCH] Only log RT in scanner when holdtime > 5 seconds --- src/logbook.cpp | 2 +- src/logbook.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/logbook.cpp b/src/logbook.cpp index e036f94..78b4471 100644 --- a/src/logbook.cpp +++ b/src/logbook.cpp @@ -271,7 +271,7 @@ byte addRowToCSV() { // Replace commas in the station name and radio text to avoid CSV conflicts String stationName = radio.rds.stationName; - String radioTextModified = radioText; + String radioTextModified = (scanhold > 4 ? radioText : ""); stationName.replace(",", " "); // Replace commas in station name radioTextModified.replace(",", " "); // Replace commas in radio text diff --git a/src/logbook.h b/src/logbook.h index a7b87f0..e390501 100644 --- a/src/logbook.h +++ b/src/logbook.h @@ -16,6 +16,7 @@ extern bool scandxmode; extern byte band; extern byte chipmodel; extern byte language; +extern byte scanhold; extern byte unit; extern int16_t SStatus; extern int8_t NTPoffset;