Skip to content

Commit

Permalink
Update src/displayapp/screens/WatchFaceTerminal.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: NeroBurner <pyro4hell@gmail.com>
  • Loading branch information
13werwolf13 and NeroBurner committed Feb 2, 2022
1 parent bba34f6 commit 6853166
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/displayapp/screens/WatchFaceTerminal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ WatchFaceTerminal::~WatchFaceTerminal() {
lv_obj_clean(lv_scr_act());
}

void WatchFaceTerminal::Refresh() {
void WatchFaceTerminal::Refresh() {
powerPresent = batteryController.IsPowerPresent();
if (powerPresent.IsUpdated()) {
lv_label_set_text_static(batteryPlug, BatteryIcon::GetPlugIcon(powerPresent.Get()));
}

batteryPercentRemaining = batteryController.PercentRemaining();
if (batteryPercentRemaining.IsUpdated()) {
auto batteryPercent = batteryPercentRemaining.Get();
Expand Down

0 comments on commit 6853166

Please sign in to comment.