summaryrefslogtreecommitdiff
path: root/src/components/timer/TimerController.cpp
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-04-16 22:18:31 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-04-16 23:38:29 (GMT)
commit3e5fddede322814c2fea7634c1bf0d5f93bae315 (patch)
tree17cf617a024a079c3baa98c590d16d58636236d8 /src/components/timer/TimerController.cpp
parentef830123ba6144ed253b4cf9fa8ec18c1b19c99a (diff)
Make Init methods more uniform among timer and alarm controllers
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;
-}