summaryrefslogtreecommitdiff
path: root/src/components/timer/TimerController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/timer/TimerController.cpp')
-rw-r--r--src/components/timer/TimerController.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/components/timer/TimerController.cpp b/src/components/timer/TimerController.cpp
index 35e3512..fa00d3c 100644
--- a/src/components/timer/TimerController.cpp
+++ b/src/components/timer/TimerController.cpp
@@ -15,7 +15,8 @@ namespace {
}
}
-void TimerController::Init() {
+void Init(System::SystemTask* systemTask) {
+ this->systemTask = systemTask;
timerAppTimer = xTimerCreate("timerAppTm", 1, pdFALSE, this, TimerEnd);
}
@@ -59,7 +60,3 @@ void TimerController::OnTimerEnd() {
systemTask->PushMessage(System::Messages::OnTimerDone);
}
}
-
-void TimerController::Register(Pinetime::System::SystemTask* systemTask) {
- this->systemTask = systemTask;
-}