diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-04-16 22:18:31 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-04-16 23:38:29 (GMT) |
| commit | 3e5fddede322814c2fea7634c1bf0d5f93bae315 (patch) | |
| tree | 17cf617a024a079c3baa98c590d16d58636236d8 /src/components/timer/TimerController.h | |
| parent | ef830123ba6144ed253b4cf9fa8ec18c1b19c99a (diff) | |
Make Init methods more uniform among timer and alarm controllers
Diffstat (limited to 'src/components/timer/TimerController.h')
| -rw-r--r-- | src/components/timer/TimerController.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/timer/TimerController.h b/src/components/timer/TimerController.h index 8542987..cdd78ec 100644 --- a/src/components/timer/TimerController.h +++ b/src/components/timer/TimerController.h @@ -16,7 +16,6 @@ namespace Pinetime { public: TimerController() = default; - void Init(); void StartTimer(uint32_t duration); void StopTimer(); void StopAlerting(); @@ -29,8 +28,9 @@ namespace Pinetime { } void OnTimerEnd(); - - void Register(System::SystemTask* systemTask); + protected: + friend class Pinetime::System::SystemTask; + void Init(System::SystemTask* systemTask); private: System::SystemTask* systemTask = nullptr; |
