Code cleanup
This commit is contained in:
parent
f5725714d1
commit
9ef1babb9d
1 changed files with 0 additions and 6 deletions
|
@ -191,12 +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);
|
||||||
|
|
||||||
// if (nrf_gpio_pin_read(PinMap::PowerPresent)) {
|
|
||||||
// nrf_gpio_cfg_sense_input(PinMap::PowerPresent, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_SENSE_LOW);
|
|
||||||
// } else {
|
|
||||||
// nrf_gpio_cfg_sense_input(PinMap::PowerPresent, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_SENSE_HIGH);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Update controller based on current gpio pin state, needs to be called after gpio config
|
// Update controller based on current gpio pin state, needs to be called after gpio config
|
||||||
batteryController.Update();
|
batteryController.Update();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue