Skip to content

Commit

Permalink
StopWatch: Add an extra space to the string without the hour
Browse files Browse the repository at this point in the history
so that it's just as long as with the hour.
  • Loading branch information
szsam committed Dec 1, 2023
1 parent f94a0c0 commit 8e17945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/displayapp/screens/StopWatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8e17945

Please sign in to comment.