removed space prefixes from Timer display
This commit is contained in:
parent
528f2816ca
commit
3a151703a4
@ -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);
|
||||
}
|
||||
|
||||
@ -1,11 +1,6 @@
|
||||
#ifndef REST_H
|
||||
#define REST_H
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include "ModeTimer.h"
|
||||
#include "ModeTimer.h"
|
||||
|
||||
struct Rest {
|
||||
|
||||
uint64_t millisTotal;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user