mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-12-25 02:32:41 +03:00
StopWatch: Add an extra space to the string without the hour
so that it's just as long as with the hour.
This commit is contained in:
parent
cd8216d1c9
commit
42fcb99b38
@ -200,7 +200,7 @@ void StopWatch::stopLapBtnEventHandler() {
|
|||||||
TimeSeparated_t times = convertTicksToTimeSegments(laps[i]);
|
TimeSeparated_t times = convertTicksToTimeSegments(laps[i]);
|
||||||
char buffer[17];
|
char buffer[17];
|
||||||
if (times.hours == 0) {
|
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 {
|
} else {
|
||||||
snprintf(buffer, sizeof(buffer), "#%2d %2d:%02d:%02d.%02d\n", i + 1, times.hours, times.mins, times.secs, times.hundredths);
|
snprintf(buffer, sizeof(buffer), "#%2d %2d:%02d:%02d.%02d\n", i + 1, times.hours, times.mins, times.secs, times.hundredths);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user