1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-28 10:36:14 +01:00

Compare commits

..

2 Commits

Author SHA1 Message Date
Harald Barth
659c58b307 version 5.0.5 2023-10-28 19:20:33 +02:00
Harald Barth
0b9ec7460b Bugfix version detection logic and better message 2023-10-28 19:18:59 +02:00
2 changed files with 9 additions and 7 deletions

View File

@ -206,12 +206,13 @@ wifiSerialState WifiInterface::setup2(const FSH* SSid, const FSH* password,
while(!wifiStream->available()); while(!wifiStream->available());
version[i]=wifiStream->read(); version[i]=wifiStream->read();
StringFormatter::printEscape(version[i]); StringFormatter::printEscape(version[i]);
if ((version[0] == '0') || }
(version[0] == '2' && version[2] == '0') || if ((version[0] == '0') ||
(version[0] == '2' && version[2] == '2' && version[4] == '0' && version[6] == '0')) { (version[0] == '2' && version[2] == '0') ||
SSid = F("DCCEX_SAYS_BROKEN_FIRMWARE"); (version[0] == '2' && version[2] == '2' && version[4] == '0' && version[6] == '0')) {
forceAP = true; DIAG(F("You need to up/downgrade the ESP firmware"));
} SSid = F("UPDATE_ESP_FIRMWARE");
forceAP = true;
} }
} }
checkForOK(2000, true, false); checkForOK(2000, true, false);

View File

@ -3,7 +3,8 @@
#include "StringFormatter.h" #include "StringFormatter.h"
#define VERSION "5.0.4" #define VERSION "5.0.5"
// 5.0.5 - Bugfix version detection logic and better message
// 5.0.4 - Bugfix: <JR> misses default roster. // 5.0.4 - Bugfix: <JR> misses default roster.
// 5.0.3 - Check bad AT firmware version // 5.0.3 - Check bad AT firmware version
// 5.0.2 - Bugfix: ESP32 30ms off time // 5.0.2 - Bugfix: ESP32 30ms off time