diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2021-07-17 08:59:19 (GMT) |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2022-04-25 12:52:39 (GMT) |
| commit | b7b1af1c4c3c21f62bf9627d39a37924be541c16 (patch) | |
| tree | b52cc00572142a0a868da0e4a239e392b22cdf13 /src/systemtask | |
| parent | 2e42b9000904fe56e2f8cff238a4d911f7648520 (diff) | |
Replace app_timer with FreeRTOS timers
Diffstat (limited to 'src/systemtask')
| -rw-r--r-- | src/systemtask/SystemTask.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index 38c728f..f4eeffc 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -2,7 +2,7 @@ #include <hal/nrf_rtc.h> #include <libraries/gpiote/app_gpiote.h> #include <libraries/log/nrf_log.h> - +#include <app_timer.h> #include "BootloaderVersion.h" #include "components/battery/BatteryController.h" #include "components/ble/BleController.h" @@ -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... |
