Change showFirmwareUpdateSuccess input fromString to int

This commit is contained in:
Phat Nguyen
2024-06-04 18:01:28 +07:00
parent 65e759fb90
commit 11ecea1493
2 changed files with 3 additions and 3 deletions

View File

@ -357,7 +357,7 @@ void OledDisplay::showFirmwareUpdateProgress(int percent) {
} while (DISP()->nextPage());
}
void OledDisplay::showFirmwareUpdateSuccess(String count) {
void OledDisplay::showFirmwareUpdateSuccess(int count) {
if (isDisplayOff) {
return;
}
@ -367,7 +367,7 @@ void OledDisplay::showFirmwareUpdateSuccess(String count) {
DISP()->setFont(u8g2_font_t0_16_tf);
setCentralText(20, "Firmware Update");
setCentralText(40, "Success");
setCentralText(60, String("Rebooting... ") + count);
setCentralText(60, String("Rebooting... ") + String(count));
} while (DISP()->nextPage());
}