diff options
author | Avamander <avamander@gmail.com> | 2021-06-25 00:40:55 +0300 |
---|---|---|
committer | JF002 <JF002@users.noreply.github.com> | 2021-07-02 16:27:41 +0200 |
commit | bdb5965f1a3432a4f24b5fc566973bf4ab811b08 (patch) | |
tree | 77de1bc6411726c47ec9ec3636b8a85f4902b6b1 /src/components/battery | |
parent | 2f479e5fc7688ae47e99c0f4aead87c9cdc29123 (diff) |
static_cast cleanup
Diffstat (limited to 'src/components/battery')
-rw-r--r-- | src/components/battery/BatteryController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/battery/BatteryController.cpp b/src/components/battery/BatteryController.cpp index bc146457..b153b980 100644 --- a/src/components/battery/BatteryController.cpp +++ b/src/components/battery/BatteryController.cpp @@ -14,7 +14,7 @@ Battery::Battery() { } void Battery::Init() { - nrf_gpio_cfg_input(chargingPin, (nrf_gpio_pin_pull_t) GPIO_PIN_CNF_PULL_Pullup); + nrf_gpio_cfg_input(chargingPin, static_cast<nrf_gpio_pin_pull_t> GPIO_PIN_CNF_PULL_Pullup); } void Battery::Update() { |