mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-14 16:36:31 +02:00
Reboot After 180s WiFi Manager not Connect.
This commit is contained in:
@ -235,6 +235,9 @@ void setup() {
|
||||
} else {
|
||||
ledBarEnabledUpdate();
|
||||
}
|
||||
} else {
|
||||
oledDisplay.showRebooting();
|
||||
delay(2500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -384,3 +384,13 @@ void OledDisplay::showNewFirmwareFailed(void) {
|
||||
setCentralText(60, String("Retry after 24h"));
|
||||
} while (DISP()->nextPage());
|
||||
}
|
||||
|
||||
void OledDisplay::showRebooting(void) {
|
||||
DISP()->firstPage();
|
||||
do {
|
||||
DISP()->setFont(u8g2_font_t0_16_tf);
|
||||
// setCentralText(20, "Firmware Update");
|
||||
setCentralText(40, "Rebooting...");
|
||||
// setCentralText(60, String("Retry after 24h"));
|
||||
} while (DISP()->nextPage());
|
||||
}
|
||||
|
@ -40,6 +40,7 @@ public:
|
||||
void showNewFirmwareUpdating(String percent);
|
||||
void showNewFirmwareSuccess(String count);
|
||||
void showNewFirmwareFailed(void);
|
||||
void showRebooting(void);
|
||||
};
|
||||
|
||||
#endif /** _AG_OLED_DISPLAY_H_ */
|
||||
|
Reference in New Issue
Block a user