diff options
| author | Jean-François Milants <jf@codingfield.com> | 2021-10-09 19:17:59 (GMT) |
|---|---|---|
| committer | Jean-François Milants <jf@codingfield.com> | 2021-10-09 19:17:59 (GMT) |
| commit | 977faebcb8b26212e0868b30e1af5c38076ff6cb (patch) | |
| tree | 0c3805149c69494cafe00b866f978b6f77029534 /src/systemtask/SystemTask.cpp | |
| parent | 9a831a6fe4137d30b3102f97f3bbc8118fe56c42 (diff) | |
Remove call to `batteryController.Update();` which was replaced by `batteryController.MeasureVoltage()`.
Diffstat (limited to 'src/systemtask/SystemTask.cpp')
| -rw-r--r-- | src/systemtask/SystemTask.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index 8674053..1238829 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -191,9 +191,6 @@ void SystemTask::Work() { nrfx_gpiote_in_init(PinMap::PowerPresent, &pinConfig, nrfx_gpiote_evt_handler); nrfx_gpiote_in_event_enable(PinMap::PowerPresent, true); - // Update controller based on current gpio pin state, needs to be called after gpio config - batteryController.Update(); - batteryController.MeasureVoltage(); idleTimer = xTimerCreate("idleTimer", pdMS_TO_TICKS(2000), pdFALSE, this, IdleTimerCallback); |
