Skip to content

Commit

Permalink
Only flag 2.2.0.0-dev as broken, not 2.2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
habazut committed Nov 6, 2023
1 parent 749a859 commit a981f83
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions WifiInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,16 @@ wifiSerialState WifiInterface::setup2(const FSH* SSid, const FSH* password,
// Display the AT version information
StringFormatter::send(wifiStream, F("AT+GMR\r\n"));
if (checkForOK(2000, F("AT version:"), true, false)) {
char version[] = "0.0.0.0";
for (int i=0; i<8;i++) {
char version[] = "0.0.0.0-xxx";
for (int i=0; i<11;i++) {
while(!wifiStream->available());
version[i]=wifiStream->read();
StringFormatter::printEscape(version[i]);
}
if ((version[0] == '0') ||
(version[0] == '2' && version[2] == '0') ||
(version[0] == '2' && version[2] == '2' && version[4] == '0' && version[6] == '0')) {
(version[0] == '2' && version[2] == '2' && version[4] == '0' && version[6] == '0'
&& version[7] == '-' && version[8] == 'd' && version[9] == 'e' && version[10] == 'v')) {
DIAG(F("You need to up/downgrade the ESP firmware"));
SSid = F("UPDATE_ESP_FIRMWARE");
forceAP = true;
Expand Down

0 comments on commit a981f83

Please sign in to comment.