diff options
| author | codingjourney <coding@journey.sk> | 2024-10-28 05:26:30 +0100 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2025-11-04 21:25:31 +0100 |
| commit | f1f4c9028e12c9a34bcfd79fd7ba273aebfbbae7 (patch) | |
| tree | da948a7123356a905fd871b6b820dc1538d21fb6 /src/displayapp/screens | |
| parent | 88e396f45f00a095e195c87a34301a51c730fa2d (diff) | |
fixed issues found by the test-format CI job
Diffstat (limited to 'src/displayapp/screens')
| -rw-r--r-- | src/displayapp/screens/StopWatch.cpp | 5 | ||||
| -rw-r--r-- | src/displayapp/screens/StopWatch.h | 6 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/displayapp/screens/StopWatch.cpp b/src/displayapp/screens/StopWatch.cpp index 2ef5d845..5265455b 100644 --- a/src/displayapp/screens/StopWatch.cpp +++ b/src/displayapp/screens/StopWatch.cpp @@ -35,8 +35,7 @@ namespace { constexpr TickType_t blinkInterval = pdMS_TO_TICKS(1000); } -StopWatch::StopWatch(System::SystemTask& systemTask, - StopWatchController& stopWatchController) +StopWatch::StopWatch(System::SystemTask& systemTask, StopWatchController& stopWatchController) : wakeLock(systemTask), stopWatchController {stopWatchController} { static constexpr uint8_t btnWidth = 115; static constexpr uint8_t btnHeight = 80; @@ -80,7 +79,7 @@ StopWatch::StopWatch(System::SystemTask& systemTask, // Figure out what the current state of the stopwatch is and select the correct display if (stopWatchController.IsCleared()) { DisplayCleared(); - } else { + } else { if (stopWatchController.GetMaxLapNumber() > 0) { RenderLaps(); } diff --git a/src/displayapp/screens/StopWatch.h b/src/displayapp/screens/StopWatch.h index b2e85b7a..b0379654 100644 --- a/src/displayapp/screens/StopWatch.h +++ b/src/displayapp/screens/StopWatch.h @@ -20,8 +20,7 @@ namespace Pinetime::Applications { class StopWatch : public Screen { public: - explicit StopWatch(System::SystemTask& systemTask, - Controllers::StopWatchController& stopWatchController); + explicit StopWatch(System::SystemTask& systemTask, Controllers::StopWatchController& stopWatchController); ~StopWatch() override; void Refresh() override; @@ -56,8 +55,7 @@ namespace Pinetime::Applications { static constexpr const char* icon = Screens::Symbols::stopWatch; static Screens::Screen* Create(AppControllers& controllers) { - return new Screens::StopWatch(*controllers.systemTask, - controllers.stopWatchController); + return new Screens::StopWatch(*controllers.systemTask, controllers.stopWatchController); } static bool IsAvailable(Pinetime::Controllers::FS& /*filesystem*/) { return true; |
