From fe658424b890b9f7f5d60e76915f185e756b6421 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:49:15 +0100 Subject: [PATCH] Fix date/time rotation without seconds --- tasmota/tasmota_xdsp_display/xdsp_13_tm1640.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/tasmota_xdsp_display/xdsp_13_tm1640.ino b/tasmota/tasmota_xdsp_display/xdsp_13_tm1640.ino index dd1d868d8..3f8032c22 100644 --- a/tasmota/tasmota_xdsp_display/xdsp_13_tm1640.ino +++ b/tasmota/tasmota_xdsp_display/xdsp_13_tm1640.ino @@ -605,6 +605,8 @@ void IoTTimerShowTime(void) { snprintf_P(buffer, sizeof(buffer), PSTR("%2d:%02d"), hour, min); if (Tm1640->clock_seconds) { snprintf_P(buffer, sizeof(buffer), PSTR("%s:%02d"), buffer, sec); + } else { + snprintf_P(buffer, sizeof(buffer), PSTR("%s "), buffer); // Erase seconds in case toggling between date/time } IoTTimerDrawStringAt(0, 0, buffer);