Skip to content

Commit fefb429

Browse files
committed
Fix formatting issue on the lap counter in Stopwatch (display lap counter on 2 characters).
1 parent 410cc82 commit fefb429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/displayapp/screens/StopWatch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ bool StopWatch::Refresh() {
145145

146146
if (lapPressed == true) {
147147
if (lapBuffer[1]) {
148-
lv_label_set_text_fmt(lapOneText, "#%d %2d:%02d.%02d", (lapNr - 1), lapBuffer[1]->mins, lapBuffer[1]->secs, lapBuffer[1]->hundredths);
148+
lv_label_set_text_fmt(lapOneText, "#%2d %2d:%02d.%02d", (lapNr - 1), lapBuffer[1]->mins, lapBuffer[1]->secs, lapBuffer[1]->hundredths);
149149
}
150150
if (lapBuffer[0]) {
151-
lv_label_set_text_fmt(lapTwoText, "#%d %2d:%02d.%02d", lapNr, lapBuffer[0]->mins, lapBuffer[0]->secs, lapBuffer[0]->hundredths);
151+
lv_label_set_text_fmt(lapTwoText, "#%2d %2d:%02d.%02d", lapNr, lapBuffer[0]->mins, lapBuffer[0]->secs, lapBuffer[0]->hundredths);
152152
}
153153
// Reset the bool to avoid setting the text in each cycle until there is a change
154154
lapPressed = false;

0 commit comments

Comments
 (0)