From 661ffbeb1eea68ec0cd63b4db537515f1d1772c8 Mon Sep 17 00:00:00 2001 From: Riku Isokoski Date: Mon, 27 Feb 2023 15:40:43 +0200 Subject: TimerController: Make TimerController reusable TimerController instance was moved to DisplayApp. --- src/components/timer/TimerController.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/components/timer/TimerController.h') diff --git a/src/components/timer/TimerController.h b/src/components/timer/TimerController.h index 1c2e44b6..1d2a51df 100644 --- a/src/components/timer/TimerController.h +++ b/src/components/timer/TimerController.h @@ -6,17 +6,10 @@ #include namespace Pinetime { - namespace System { - class SystemTask; - } - namespace Controllers { - class TimerController { public: - TimerController() = default; - - void Init(System::SystemTask* systemTask); + TimerController(void* timerData, TimerCallbackFunction_t timerCallbackFunction); void StartTimer(std::chrono::milliseconds duration); @@ -26,10 +19,7 @@ namespace Pinetime { bool IsRunning(); - void OnTimerEnd(); - private: - System::SystemTask* systemTask = nullptr; TimerHandle_t timer; }; } -- cgit v1.2.3-70-g09d2