Remove call to batteryController.Update(); which was replaced by batteryController.MeasureVoltage().

This commit is contained in:
Jean-François Milants 2021-10-09 21:17:59 +02:00
parent 9a831a6fe4
commit 977faebcb8

View File

@ -191,9 +191,6 @@ void SystemTask::Work() {
nrfx_gpiote_in_init(PinMap::PowerPresent, &pinConfig, nrfx_gpiote_evt_handler); nrfx_gpiote_in_init(PinMap::PowerPresent, &pinConfig, nrfx_gpiote_evt_handler);
nrfx_gpiote_in_event_enable(PinMap::PowerPresent, true); 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(); batteryController.MeasureVoltage();
idleTimer = xTimerCreate("idleTimer", pdMS_TO_TICKS(2000), pdFALSE, this, IdleTimerCallback); idleTimer = xTimerCreate("idleTimer", pdMS_TO_TICKS(2000), pdFALSE, this, IdleTimerCallback);