From 0f2d1382512543f72ce817373c2c1916dbd0f902 Mon Sep 17 00:00:00 2001 From: codingjourney Date: Sat, 21 Dec 2024 05:38:55 +0100 Subject: [PATCH] fixed issues found by the test-format CI job --- src/displayapp/screens/StopWatch.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/displayapp/screens/StopWatch.cpp b/src/displayapp/screens/StopWatch.cpp index 026260cbfa..7c3de23962 100644 --- a/src/displayapp/screens/StopWatch.cpp +++ b/src/displayapp/screens/StopWatch.cpp @@ -180,23 +180,18 @@ void StopWatch::RenderLaps() { TimeSeparated laptime = ConvertTicksToTimeSegments(lap->timeSinceStart); char buffer[19]; if (laptime.hours > 0) { - snprintf(buffer, sizeof(buffer), "\n#%-3d %3d:%02d:%02d.%02d", + snprintf(buffer, + sizeof(buffer), + "\n#%-3d %3d:%02d:%02d.%02d", lap->number, laptime.hours, laptime.mins, laptime.secs, laptime.hundredths); } else if (laptime.mins > 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 %2d.%02d", - lap->number, - laptime.secs, - laptime.hundredths); + snprintf(buffer, sizeof(buffer), "\n#%-3d %2d.%02d", lap->number, laptime.secs, laptime.hundredths); } lv_label_ins_text(lapText, LV_LABEL_POS_LAST, buffer); }