aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/StopWatch.h
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2021-08-30 10:15:19 +0300
committerRiku Isokoski <riksu9000@gmail.com>2021-08-30 10:15:19 +0300
commit21d37d1e234b217b3e71dc65eb19db197ee21bad (patch)
treed1082c3dbcddd6d56fbb0f14fc9100f1efbfe441 /src/displayapp/screens/StopWatch.h
parent085c9ab2e15b35af01d73e823a87994a7a24a76f (diff)
parent6c023785e53c507f7cb20703f5f3a221ea095068 (diff)
Merge remote-tracking branch 'upstream/develop' into timer_battery_reading
Diffstat (limited to 'src/displayapp/screens/StopWatch.h')
-rw-r--r--src/displayapp/screens/StopWatch.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/displayapp/screens/StopWatch.h b/src/displayapp/screens/StopWatch.h
index e132f158..25634e92 100644
--- a/src/displayapp/screens/StopWatch.h
+++ b/src/displayapp/screens/StopWatch.h
@@ -64,7 +64,7 @@ namespace Pinetime::Applications::Screens {
public:
StopWatch(DisplayApp* app, System::SystemTask& systemTask);
~StopWatch() override;
- bool Refresh() override;
+ void Refresh() override;
void playPauseBtnEventHandler(lv_event_t event);
void stopLapBtnEventHandler(lv_event_t event);
@@ -77,7 +77,6 @@ namespace Pinetime::Applications::Screens {
private:
Pinetime::System::SystemTask& systemTask;
TickType_t timeElapsed;
- bool running;
States currentState;
TickType_t startTime;
TickType_t oldTimeElapsed;
@@ -86,5 +85,7 @@ namespace Pinetime::Applications::Screens {
int lapNr = 0;
lv_obj_t *time, *msecTime, *btnPlayPause, *btnStopLap, *txtPlayPause, *txtStopLap;
lv_obj_t *lapOneText, *lapTwoText;
+
+ lv_task_t* taskRefresh;
};
}