From 3a151703a4e09f01a8ca955acb1c5aca21f929be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Ha=C3=9Fel?= Date: Thu, 7 Aug 2025 13:19:59 +0200 Subject: [PATCH] removed space prefixes from Timer display --- src/mode/ModeTimer.h | 8 ++++---- src/mode/Rest.h | 5 ----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/mode/ModeTimer.h b/src/mode/ModeTimer.h index a04bf03..d264c4d 100644 --- a/src/mode/ModeTimer.h +++ b/src/mode/ModeTimer.h @@ -211,19 +211,19 @@ private: } if (rest.daysTotal > 0) { - display.print(16, 0, ALIGN_CENTER, FONT7, color, "%3d. %2d", rest.daysPart, rest.hoursPart); + display.print(16, 0, ALIGN_CENTER, FONT7, color, "%d. %2d", rest.daysPart, rest.hoursPart); dirty |= rest.hourChanged(last); dirtyPrint = true; } else if (rest.hoursTotal > 0) { - display.print(16, 0, ALIGN_CENTER, FONT7, color, "%2d:%02d:%02d", rest.hoursPart, rest.minutesPart, rest.secondsPart); + display.print(16, 0, ALIGN_CENTER, FONT7, color, "%d:%02d:%02d", rest.hoursPart, rest.minutesPart, rest.secondsPart); dirty |= rest.secondChanged(last); dirtyPrint = true; } else if (rest.minutesTotal > 0) { - display.print(16, 0, ALIGN_CENTER, FONT7, color, "%2d:%02d", rest.minutesPart, rest.secondsPart); + display.print(16, 0, ALIGN_CENTER, FONT7, color, "%d:%02d", rest.minutesPart, rest.secondsPart); dirty |= rest.secondChanged(last); dirtyPrint = true; } else { - display.print(16, 0, ALIGN_CENTER, FONT7, color, "%2d.%d", rest.secondsPart, rest.decisPart); + display.print(16, 0, ALIGN_CENTER, FONT7, color, "%d.%d", rest.secondsPart, rest.decisPart); dirty |= rest.deciChanged(last); dirtyPrint |= rest.secondChanged(last); } diff --git a/src/mode/Rest.h b/src/mode/Rest.h index 04a13dc..cacd8a3 100644 --- a/src/mode/Rest.h +++ b/src/mode/Rest.h @@ -1,11 +1,6 @@ #ifndef REST_H #define REST_H -#include - -#include "ModeTimer.h" -#include "ModeTimer.h" - struct Rest { uint64_t millisTotal;