diff options
| author | codingjourney <coding@journey.sk> | 2024-12-07 07:52:32 +0100 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2025-11-04 21:25:31 +0100 |
| commit | b4032fff4dc45a022193204e43f4629884e739a6 (patch) | |
| tree | 894ab7433f055e73ba7fb1937bc9ff37b6d3d274 | |
| parent | 526b7844bbdef0f8f252bd96aaf82dbdab9ebdaf (diff) | |
fixed issues found by the test-format CI job
| -rw-r--r-- | src/displayapp/screens/StopWatch.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/displayapp/screens/StopWatch.cpp b/src/displayapp/screens/StopWatch.cpp index fc960113..506a317b 100644 --- a/src/displayapp/screens/StopWatch.cpp +++ b/src/displayapp/screens/StopWatch.cpp @@ -177,11 +177,16 @@ void StopWatch::RenderLaps() { TimeSeparated laptime = ConvertTicksToTimeSegments(lap->timeSinceStart); char buffer[19]; if (laptime.hours == 0) { - snprintf(buffer, sizeof(buffer), "\n#%-3d %2d:%02d.%02d", - lap->number, laptime.mins, laptime.secs, laptime.hundredths); + snprintf(buffer, sizeof(buffer), "\n#%-3d %2d:%02d.%02d", lap->number, laptime.mins, laptime.secs, laptime.hundredths); } else { - snprintf(buffer, sizeof(buffer), "\n#%-3d %3d:%02d:%02d.%02d", - lap->number, laptime.hours, laptime.mins, laptime.secs, laptime.hundredths); + snprintf(buffer, + sizeof(buffer), + "\n#%-3d %3d:%02d:%02d.%02d", + lap->number, + laptime.hours, + laptime.mins, + laptime.secs, + laptime.hundredths); } lv_label_ins_text(lapText, LV_LABEL_POS_LAST, buffer); } @@ -191,7 +196,7 @@ void StopWatch::RenderLaps() { void StopWatch::SetHoursVisible(bool visible) { if (hoursVisible != visible) { - lv_font_t *font = visible ? &jetbrains_mono_42 : &jetbrains_mono_76; + lv_font_t* font = visible ? &jetbrains_mono_42 : &jetbrains_mono_76; lv_obj_set_style_local_text_font(time, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, font); lv_obj_set_height(time, font->line_height); lv_obj_align(time, lv_scr_act(), LV_ALIGN_IN_TOP_MID, 0, visible ? 5 : 0); |
