Skip to content

Commit 96fd2df

Browse files
committed
fixed issues found by the test-format CI job
1 parent ec2a767 commit 96fd2df

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

src/components/stopwatch/StopWatchController.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace Pinetime {
99
namespace System {
1010
class SystemTask;
1111
}
12+
1213
namespace Controllers {
1314

1415
enum class StopWatchStates { Cleared, Running, Paused };
@@ -18,7 +19,6 @@ namespace Pinetime {
1819
TickType_t timeSinceStart = 0; // Excluding pauses
1920
};
2021

21-
2222
class StopWatchController {
2323
public:
2424
StopWatchController();

src/displayapp/screens/StopWatch.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ namespace {
3535
constexpr TickType_t blinkInterval = pdMS_TO_TICKS(1000);
3636
}
3737

38-
StopWatch::StopWatch(System::SystemTask& systemTask,
39-
StopWatchController& stopWatchController)
38+
StopWatch::StopWatch(System::SystemTask& systemTask, StopWatchController& stopWatchController)
4039
: wakeLock(systemTask), stopWatchController {stopWatchController} {
4140
static constexpr uint8_t btnWidth = 115;
4241
static constexpr uint8_t btnHeight = 80;
@@ -80,7 +79,7 @@ StopWatch::StopWatch(System::SystemTask& systemTask,
8079
// Figure out what the current state of the stopwatch is and select the correct display
8180
if (stopWatchController.IsCleared()) {
8281
DisplayCleared();
83-
} else {
82+
} else {
8483
if (stopWatchController.GetMaxLapNumber() > 0) {
8584
RenderLaps();
8685
}

src/displayapp/screens/StopWatch.h

+2-4
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ namespace Pinetime::Applications {
2020

2121
class StopWatch : public Screen {
2222
public:
23-
explicit StopWatch(System::SystemTask& systemTask,
24-
Controllers::StopWatchController& stopWatchController);
23+
explicit StopWatch(System::SystemTask& systemTask, Controllers::StopWatchController& stopWatchController);
2524
~StopWatch() override;
2625
void Refresh() override;
2726

@@ -56,8 +55,7 @@ namespace Pinetime::Applications {
5655
static constexpr const char* icon = Screens::Symbols::stopWatch;
5756

5857
static Screens::Screen* Create(AppControllers& controllers) {
59-
return new Screens::StopWatch(*controllers.systemTask,
60-
controllers.stopWatchController);
58+
return new Screens::StopWatch(*controllers.systemTask, controllers.stopWatchController);
6159
};
6260
};
6361
}

0 commit comments

Comments
 (0)