summaryrefslogtreecommitdiff
path: root/src/components/battery
diff options
context:
space:
mode:
authorDavid Ventura <davidventura27@gmail.com>2021-05-16 21:13:22 +0200
committerGitHub <noreply@github.com>2021-05-16 21:13:22 +0200
commit9342d62a44830113241f0fdbc2951db93e474e26 (patch)
tree20094e33a7eb84060af9976433f54cb58fb1b1cb /src/components/battery
parent5b2472c4bc84bbdd5e8326ea7562f6bc133cf00e (diff)
Emit event on power-present toggle (#320)
* Emit event on power-present toggle * clang-format on changes * also update battery status on any event * update comments; remove double battery update * Fix formatting * Vibrate shortly on charging event * debounce charge event
Diffstat (limited to 'src/components/battery')
-rw-r--r--src/components/battery/BatteryController.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/components/battery/BatteryController.cpp b/src/components/battery/BatteryController.cpp
index b39efefb..bc146457 100644
--- a/src/components/battery/BatteryController.cpp
+++ b/src/components/battery/BatteryController.cpp
@@ -15,7 +15,6 @@ Battery::Battery() {
void Battery::Init() {
nrf_gpio_cfg_input(chargingPin, (nrf_gpio_pin_pull_t) GPIO_PIN_CNF_PULL_Pullup);
- nrf_gpio_cfg_input(powerPresentPin, (nrf_gpio_pin_pull_t) GPIO_PIN_CNF_PULL_Pullup);
}
void Battery::Update() {