summaryrefslogtreecommitdiff
path: root/src/systemtask/SystemTask.cpp
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-04-17 11:10:44 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-04-17 13:12:52 (GMT)
commit50b5b2ccb716a4a5c5b409962424a2441c9435e7 (patch)
tree81b7ec7950a595cbefab6b4954171bf4b6d498bf /src/systemtask/SystemTask.cpp
parent94db51bba103c6b70475209c05a10911f4a005c7 (diff)
Switch MotorController and TimerController to FreeRTOS timers
Diffstat (limited to 'src/systemtask/SystemTask.cpp')
-rw-r--r--src/systemtask/SystemTask.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp
index 9105d89..35406bf 100644
--- a/src/systemtask/SystemTask.cpp
+++ b/src/systemtask/SystemTask.cpp
@@ -152,8 +152,7 @@ void SystemTask::Work() {
batteryController.Register(this);
motorController.Init();
motionSensor.SoftReset();
- timerController.Register(this);
- timerController.Init();
+ timerController.Init(this);
alarmController.Init(this);
// Reset the TWI device because the motion sensor chip most probably crashed it...