diff options
author | Jean-François Milants <jf@codingfield.com> | 2021-10-09 21:17:59 +0200 |
---|---|---|
committer | Jean-François Milants <jf@codingfield.com> | 2021-10-09 21:17:59 +0200 |
commit | 977faebcb8b26212e0868b30e1af5c38076ff6cb (patch) | |
tree | 0c3805149c69494cafe00b866f978b6f77029534 /src | |
parent | 9a831a6fe4137d30b3102f97f3bbc8118fe56c42 (diff) |
Remove call to `batteryController.Update();` which was replaced by `batteryController.MeasureVoltage()`.
Diffstat (limited to 'src')
-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 86740532..12388290 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); |