firmware wip - Notification about Maintenance Mode on display

This commit is contained in:
Marcus 2024-05-08 18:38:54 +02:00
parent 9e0c5056ae
commit 330b3e7649

View file

@ -1355,6 +1355,16 @@ void displayScreens() {
}
display.setCursor(0,0);
if(MaintenanceMode == true) {
display.drawBitmap(0, 0, bmpCanGrow_Logo, 128, 32, WHITE);
display.display();
display.setCursor(0,32);
display.println("Maintenance mode active");
display.print("Time left: ");
display.print(MaintenanceDuration - ((millis() - MaintenanceStarted) / 1000));
display.println("s");
} else {
// in this switch case the single screens gets defined
switch(ScreenToDisplay) {
case 0:
@ -1417,6 +1427,7 @@ void displayScreens() {
display.println(WiFi.localIP());
break;
}
}
ScreenIterationPassed++;
display.display();