From 358391df9b3481ce2d462084aca2218958f549f0 Mon Sep 17 00:00:00 2001 From: alex__rogers Date: Thu, 14 Nov 2024 20:14:20 +0000 Subject: [PATCH] Update to version 1.11.0. --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 755454a..57d650b 100644 --- a/src/main.c +++ b/src/main.c @@ -1066,13 +1066,13 @@ static bool writeConfigurationToFile(configSettings_t *configSettings, uint32_t if (time.tm_hour == 0 && time.tm_min == 0 && time.tm_sec == 0) { - length += sprintf(configBuffer + length, "\r\nFirst recording date : "); + length = sprintf(configBuffer, "\r\n\r\nFirst recording date : "); length += sprintf(configBuffer + length, "%04d-%02d-%02d (%s)", YEAR_OFFSET + time.tm_year, MONTH_OFFSET + time.tm_mon, time.tm_mday, timezoneBuffer); } else { - length += sprintf(configBuffer + length, "\r\nFirst recording time : "); + length = sprintf(configBuffer, "\r\n\r\nFirst recording time : "); length += sprintf(configBuffer + length, "%04d-%02d-%02d %02d:%02d:%02d (%s)", YEAR_OFFSET + time.tm_year, MONTH_OFFSET + time.tm_mon, time.tm_mday, time.tm_hour, time.tm_min, time.tm_sec, timezoneBuffer);