static_cast cleanup

This commit is contained in:
Avamander
2021-06-25 00:40:55 +03:00
committed by JF002
parent 2f479e5fc7
commit bdb5965f1a
2 changed files with 3 additions and 3 deletions

View File

@@ -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() {