removed space prefixes from Timer display

This commit is contained in:
Patrick Haßel 2025-08-07 13:19:59 +02:00
parent 528f2816ca
commit 3a151703a4
2 changed files with 4 additions and 9 deletions

View File

@ -211,19 +211,19 @@ private:
} }
if (rest.daysTotal > 0) { 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); dirty |= rest.hourChanged(last);
dirtyPrint = true; dirtyPrint = true;
} else if (rest.hoursTotal > 0) { } 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); dirty |= rest.secondChanged(last);
dirtyPrint = true; dirtyPrint = true;
} else if (rest.minutesTotal > 0) { } 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); dirty |= rest.secondChanged(last);
dirtyPrint = true; dirtyPrint = true;
} else { } 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); dirty |= rest.deciChanged(last);
dirtyPrint |= rest.secondChanged(last); dirtyPrint |= rest.secondChanged(last);
} }

View File

@ -1,11 +1,6 @@
#ifndef REST_H #ifndef REST_H
#define REST_H #define REST_H
#include <cstdint>
#include "ModeTimer.h"
#include "ModeTimer.h"
struct Rest { struct Rest {
uint64_t millisTotal; uint64_t millisTotal;