Small opdate on CSV handler

This commit is contained in:
Sjef Verhoeven PE5PVB
2025-01-22 10:22:33 +01:00
parent 034e23e885
commit fc0aa0f9a0

View File

@@ -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)) {