Skip to content

Commit 977faeb

Browse files
committed
Remove call to batteryController.Update(); which was replaced by batteryController.MeasureVoltage().
1 parent 9a831a6 commit 977faeb

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/systemtask/SystemTask.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,6 @@ void SystemTask::Work() {
191191
nrfx_gpiote_in_init(PinMap::PowerPresent, &pinConfig, nrfx_gpiote_evt_handler);
192192
nrfx_gpiote_in_event_enable(PinMap::PowerPresent, true);
193193

194-
// Update controller based on current gpio pin state, needs to be called after gpio config
195-
batteryController.Update();
196-
197194
batteryController.MeasureVoltage();
198195

199196
idleTimer = xTimerCreate("idleTimer", pdMS_TO_TICKS(2000), pdFALSE, this, IdleTimerCallback);

0 commit comments

Comments
 (0)