Whitespace and brace fixes (#456)

* Brace style and whitespace fixes

* Additional whitespace fixes
This commit is contained in:
Avamander
2021-07-04 21:06:50 +03:00
committed by GitHub
parent 3b0fcc2a73
commit ab59b9b830
2 changed files with 15 additions and 17 deletions

View File

@@ -22,8 +22,9 @@ void Battery::Update() {
isCharging = !nrf_gpio_pin_read(chargingPin);
isPowerPresent = !nrf_gpio_pin_read(powerPresentPin);
if (isReading)
if (isReading) {
return;
}
// Non blocking read
samples = 0;
isReading = true;