Low battery popup

This commit is contained in:
Krzysiek Egzmont
2023-11-01 00:11:04 +01:00
parent 9f1e6ab91f
commit c2be853ef1
4 changed files with 56 additions and 25 deletions

View File

@@ -234,6 +234,12 @@ void UI_DisplayMain(void)
// clear the screen
memset(gFrameBuffer, 0, sizeof(gFrameBuffer));
if(gLowBattery && !gLowBatteryConfirmed) {
UI_DisplayPopup("LOW BATTERY");
ST7565_BlitFullScreen();
return;
}
if (gEeprom.KEY_LOCK && gKeypadLocked > 0)
{ // tell user how to unlock the keyboard
UI_PrintString("Long press #", 0, LCD_WIDTH, 1, 8);