Skip to content

Commit d7d336e

Browse files
codingjourneyJF002
authored andcommitted
fixed issues found by the test-format CI job
1 parent fdf0653 commit d7d336e

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

src/displayapp/screens/StopWatch.cpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -180,23 +180,18 @@ void StopWatch::RenderLaps() {
180180
TimeSeparated laptime = ConvertTicksToTimeSegments(lap->timeSinceStart);
181181
char buffer[19];
182182
if (laptime.hours > 0) {
183-
snprintf(buffer, sizeof(buffer), "\n#%-3d %3d:%02d:%02d.%02d",
183+
snprintf(buffer,
184+
sizeof(buffer),
185+
"\n#%-3d %3d:%02d:%02d.%02d",
184186
lap->number,
185187
laptime.hours,
186188
laptime.mins,
187189
laptime.secs,
188190
laptime.hundredths);
189191
} else if (laptime.mins > 0) {
190-
snprintf(buffer, sizeof(buffer), "\n#%-3d %2d:%02d.%02d",
191-
lap->number,
192-
laptime.mins,
193-
laptime.secs,
194-
laptime.hundredths);
192+
snprintf(buffer, sizeof(buffer), "\n#%-3d %2d:%02d.%02d", lap->number, laptime.mins, laptime.secs, laptime.hundredths);
195193
} else {
196-
snprintf(buffer, sizeof(buffer), "\n#%-3d %2d.%02d",
197-
lap->number,
198-
laptime.secs,
199-
laptime.hundredths);
194+
snprintf(buffer, sizeof(buffer), "\n#%-3d %2d.%02d", lap->number, laptime.secs, laptime.hundredths);
200195
}
201196
lv_label_ins_text(lapText, LV_LABEL_POS_LAST, buffer);
202197
}

0 commit comments

Comments
 (0)