Remove call to `batteryController.Update();` which was replaced by `batteryController.MeasureVoltage()`.
This commit is contained in:
parent
9a831a6fe4
commit
977faebcb8
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue