diff options
| author | Jean-François Milants <jf@codingfield.com> | 2021-04-20 19:01:38 (GMT) |
|---|---|---|
| committer | Jean-François Milants <jf@codingfield.com> | 2021-04-20 19:01:38 (GMT) |
| commit | fefb429fb4bf1020553900d9e514d3baa9040325 (patch) | |
| tree | d9be3a41b4dcb8630fc2f6bdffe8317fef095470 /src/displayapp | |
| parent | 410cc821f46acfaa34e66a801301c708a5f12625 (diff) | |
Fix formatting issue on the lap counter in Stopwatch (display lap counter on 2 characters).
Diffstat (limited to 'src/displayapp')
| -rw-r--r-- | src/displayapp/screens/StopWatch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/displayapp/screens/StopWatch.cpp b/src/displayapp/screens/StopWatch.cpp index 30f2335..bf42c69 100644 --- a/src/displayapp/screens/StopWatch.cpp +++ b/src/displayapp/screens/StopWatch.cpp @@ -145,10 +145,10 @@ bool StopWatch::Refresh() { if (lapPressed == true) { if (lapBuffer[1]) { - lv_label_set_text_fmt(lapOneText, "#%d %2d:%02d.%02d", (lapNr - 1), lapBuffer[1]->mins, lapBuffer[1]->secs, lapBuffer[1]->hundredths); + lv_label_set_text_fmt(lapOneText, "#%2d %2d:%02d.%02d", (lapNr - 1), lapBuffer[1]->mins, lapBuffer[1]->secs, lapBuffer[1]->hundredths); } if (lapBuffer[0]) { - lv_label_set_text_fmt(lapTwoText, "#%d %2d:%02d.%02d", lapNr, lapBuffer[0]->mins, lapBuffer[0]->secs, lapBuffer[0]->hundredths); + lv_label_set_text_fmt(lapTwoText, "#%2d %2d:%02d.%02d", lapNr, lapBuffer[0]->mins, lapBuffer[0]->secs, lapBuffer[0]->hundredths); } // Reset the bool to avoid setting the text in each cycle until there is a change lapPressed = false; |
