aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMingjie Shen <shen497@purdue.edu>2023-04-26 22:43:22 -0400
committerNeroBurner <pyro4hell@gmail.com>2023-12-01 08:52:42 +0100
commit42fcb99b389139c974742ad807a5a6da61231a5c (patch)
treeb1ca4f7fbb8a3623370a1ea28a304c9cfc9d8495
parentcd8216d1c9c15f4d1876ed31f5d79b594e031e6c (diff)
StopWatch: Add an extra space to the string without the hour
so that it's just as long as with the hour.
-rw-r--r--src/displayapp/screens/StopWatch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/StopWatch.cpp b/src/displayapp/screens/StopWatch.cpp
index d2b81154..f0359da4 100644
--- a/src/displayapp/screens/StopWatch.cpp
+++ b/src/displayapp/screens/StopWatch.cpp
@@ -200,7 +200,7 @@ void StopWatch::stopLapBtnEventHandler() {
TimeSeparated_t times = convertTicksToTimeSegments(laps[i]);
char buffer[17];
if (times.hours == 0) {
- snprintf(buffer, sizeof(buffer), "#%2d %2d:%02d.%02d\n", i + 1, times.mins, times.secs, times.hundredths);
+ snprintf(buffer, sizeof(buffer), "#%2d %2d:%02d.%02d\n", i + 1, times.mins, times.secs, times.hundredths);
} else {
snprintf(buffer, sizeof(buffer), "#%2d %2d:%02d:%02d.%02d\n", i + 1, times.hours, times.mins, times.secs, times.hundredths);
}