Whitespace and brace fixes (#456)
* Brace style and whitespace fixes * Additional whitespace fixes
This commit is contained in:
parent
3b0fcc2a73
commit
ab59b9b830
2 changed files with 15 additions and 17 deletions
|
@ -22,8 +22,9 @@ void Battery::Update() {
|
||||||
isCharging = !nrf_gpio_pin_read(chargingPin);
|
isCharging = !nrf_gpio_pin_read(chargingPin);
|
||||||
isPowerPresent = !nrf_gpio_pin_read(powerPresentPin);
|
isPowerPresent = !nrf_gpio_pin_read(powerPresentPin);
|
||||||
|
|
||||||
if (isReading)
|
if (isReading) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
// Non blocking read
|
// Non blocking read
|
||||||
samples = 0;
|
samples = 0;
|
||||||
isReading = true;
|
isReading = true;
|
||||||
|
|
|
@ -50,7 +50,6 @@ Steps::Steps(
|
||||||
lv_obj_set_size(backgroundLabel, 240, 240);
|
lv_obj_set_size(backgroundLabel, 240, 240);
|
||||||
lv_obj_set_pos(backgroundLabel, 0, 0);
|
lv_obj_set_pos(backgroundLabel, 0, 0);
|
||||||
lv_label_set_text_static(backgroundLabel, "");
|
lv_label_set_text_static(backgroundLabel, "");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Steps::~Steps() {
|
Steps::~Steps() {
|
||||||
|
@ -68,5 +67,3 @@ bool Steps::Refresh() {
|
||||||
|
|
||||||
return running;
|
return running;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue