diff options
| author | mark9064 <30447455+mark9064@users.noreply.github.com> | 2024-08-23 00:15:24 +0100 |
|---|---|---|
| committer | NeroBurner <pyro4hell@gmail.com> | 2024-09-21 22:45:57 +0200 |
| commit | 7ca0418c82173fa1cff9537eaf1f030b5a712e9a (patch) | |
| tree | 6d62fcabb5c764dff72943a08a8c7e554fcd5043 /src/displayapp/screens/StopWatch.h | |
| parent | c3d05901a05a274f30c15b8c0640b6ecdd973ac3 (diff) | |
Refactor doNotGoToSleep to a wakelock counter
Diffstat (limited to 'src/displayapp/screens/StopWatch.h')
| -rw-r--r-- | src/displayapp/screens/StopWatch.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/displayapp/screens/StopWatch.h b/src/displayapp/screens/StopWatch.h index 3386d042..55a178dc 100644 --- a/src/displayapp/screens/StopWatch.h +++ b/src/displayapp/screens/StopWatch.h @@ -7,6 +7,7 @@ #include "portmacro_cmsis.h" #include "systemtask/SystemTask.h" +#include "systemtask/WakeLock.h" #include "displayapp/apps/Apps.h" #include "displayapp/Controllers.h" #include "Symbols.h" @@ -43,7 +44,7 @@ namespace Pinetime { void Start(); void Pause(); - Pinetime::System::SystemTask& systemTask; + Pinetime::System::WakeLock wakeLock; States currentState = States::Init; TickType_t startTime; TickType_t oldTimeElapsed = 0; |
