Skip to content

Commit 03859f0

Browse files
committed
fixed issues found by the test-format CI job
1 parent 170526e commit 03859f0

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/displayapp/screens/StopWatch.cpp

+10-5
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,16 @@ void StopWatch::RenderLaps() {
177177
TimeSeparated laptime = ConvertTicksToTimeSegments(lap->timeSinceStart);
178178
char buffer[19];
179179
if (laptime.hours == 0) {
180-
snprintf(buffer, sizeof(buffer), "\n#%-3d %2d:%02d.%02d",
181-
lap->number, laptime.mins, laptime.secs, laptime.hundredths);
180+
snprintf(buffer, sizeof(buffer), "\n#%-3d %2d:%02d.%02d", lap->number, laptime.mins, laptime.secs, laptime.hundredths);
182181
} else {
183-
snprintf(buffer, sizeof(buffer), "\n#%-3d %3d:%02d:%02d.%02d",
184-
lap->number, laptime.hours, laptime.mins, laptime.secs, laptime.hundredths);
182+
snprintf(buffer,
183+
sizeof(buffer),
184+
"\n#%-3d %3d:%02d:%02d.%02d",
185+
lap->number,
186+
laptime.hours,
187+
laptime.mins,
188+
laptime.secs,
189+
laptime.hundredths);
185190
}
186191
lv_label_ins_text(lapText, LV_LABEL_POS_LAST, buffer);
187192
}
@@ -191,7 +196,7 @@ void StopWatch::RenderLaps() {
191196

192197
void StopWatch::SetHoursVisible(bool visible) {
193198
if (hoursVisible != visible) {
194-
lv_font_t *font = visible ? &jetbrains_mono_42 : &jetbrains_mono_76;
199+
lv_font_t* font = visible ? &jetbrains_mono_42 : &jetbrains_mono_76;
195200
lv_obj_set_style_local_text_font(time, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, font);
196201
lv_obj_set_height(time, font->line_height);
197202
lv_obj_align(time, lv_scr_act(), LV_ALIGN_IN_TOP_MID, 0, visible ? 5 : 0);

0 commit comments

Comments
 (0)