forked from airgradienthq/arduino
Update OTA processing message. Fix always retry of bootCount = 0
This commit is contained in:
1 parent
ed02f66ca2
commit
c04ab90fd2
3 files changed
+12
-4
No files matched your search
@@ -380,7 +380,8 @@ void OledDisplay::showNewFirmwareFailed(void) {
|
||||
do {
|
||||
DISP()->setFont(u8g2_font_t0_16_tf);
|
||||
setCentralText(20, "Firmware Update");
|
||||
setCentralText(40, "Failed");
|
||||
setCentralText(40, "fail, will retry");
|
||||
// setCentralText(60, "will retry");
|
||||
} while (DISP()->nextPage());
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ public:
|
||||
int countPosition;
|
||||
const int targetCount = 20;
|
||||
int bootCount;
|
||||
int otaBootCount;
|
||||
int otaBootCount = -1;
|
||||
|
||||
String toString(bool isLocal, AgFirmwareMode fwMode, int rssi, void* _ag, void* _config);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user