Skip to content

Commit

Permalink
About screen shows plugged when connected on power #feature
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceAngel committed Oct 16, 2022
1 parent a485430 commit a042836
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/UserInterface/Components/MainPanel/AboutPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ void AboutPanel::render() {
TTGOClass::getWatch()->tft->drawString("Unpl:", 10, this->calculatePosY(3, true));
if (SystemInfo::getInstance()->getPluggedIn() == false) {
this->renderDateDiff(SystemInfo::getInstance()->getUnplugTime(), 3);
} else {
TTGOClass::getWatch()->tft->drawString(
"plugged",
TTGOClass::getWatch()->tft->width() - TTGOClass::getWatch()->tft->textWidth("plugged") - 15,
this->calculatePosY(3, true)
);
}
}
this->prevUptime = uptime;
Expand Down

0 comments on commit a042836

Please sign in to comment.