From fc0aa0f9a0481930a006c4a822f88e98c3c9037d Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Wed, 22 Jan 2025 10:22:33 +0100 Subject: [PATCH] Small opdate on CSV handler --- src/logbook.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/logbook.cpp b/src/logbook.cpp index 65ab322..2b09207 100644 --- a/src/logbook.cpp +++ b/src/logbook.cpp @@ -291,7 +291,8 @@ byte addRowToCSV() { char row[256]; snprintf(row, sizeof(row), "%s,%s,%s,%s,%s,%s,%s,%s,%s,%s\n", currentDateTime, frequencyFormatted, piCode, - signal, Stereo, TA, TP, pty, ECC, stationName); + signal, Stereo, TA, TP, pty, ECC, + stationName[0] != '\0' ? stationName : ""); // Write the row to the file and close it if (file.print(row)) {