mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-24 08:36:14 +01:00
Compare commits
6 Commits
b9c4dc2227
...
a8b196e110
Author | SHA1 | Date | |
---|---|---|---|
|
a8b196e110 | ||
|
387ea019bd | ||
|
a981f83bb9 | ||
|
749a859db5 | ||
|
659c58b307 | ||
|
0b9ec7460b |
|
@ -172,6 +172,8 @@ void RMFT2::printMessage(uint16_t id) {
|
||||||
#include "EXRAIL2MacroReset.h"
|
#include "EXRAIL2MacroReset.h"
|
||||||
#undef TURNOUT
|
#undef TURNOUT
|
||||||
#define TURNOUT(id,addr,subaddr,description...) O_DESC(id,description)
|
#define TURNOUT(id,addr,subaddr,description...) O_DESC(id,description)
|
||||||
|
#undef TURNOUTL
|
||||||
|
#define TURNOUTL(id,addr,description...) O_DESC(id,description)
|
||||||
#undef PIN_TURNOUT
|
#undef PIN_TURNOUT
|
||||||
#define PIN_TURNOUT(id,pin,description...) O_DESC(id,description)
|
#define PIN_TURNOUT(id,pin,description...) O_DESC(id,description)
|
||||||
#undef SERVO_TURNOUT
|
#undef SERVO_TURNOUT
|
||||||
|
|
|
@ -201,17 +201,19 @@ wifiSerialState WifiInterface::setup2(const FSH* SSid, const FSH* password,
|
||||||
// Display the AT version information
|
// Display the AT version information
|
||||||
StringFormatter::send(wifiStream, F("AT+GMR\r\n"));
|
StringFormatter::send(wifiStream, F("AT+GMR\r\n"));
|
||||||
if (checkForOK(2000, F("AT version:"), true, false)) {
|
if (checkForOK(2000, F("AT version:"), true, false)) {
|
||||||
char version[] = "0.0.0.0";
|
char version[] = "0.0.0.0-xxx";
|
||||||
for (int i=0; i<8;i++) {
|
for (int i=0; i<11;i++) {
|
||||||
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;
|
&& 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
checkForOK(2000, true, false);
|
checkForOK(2000, true, false);
|
||||||
|
|
|
@ -3,7 +3,10 @@
|
||||||
|
|
||||||
#include "StringFormatter.h"
|
#include "StringFormatter.h"
|
||||||
|
|
||||||
#define VERSION "5.0.4"
|
#define VERSION "5.0.7"
|
||||||
|
// 5.0.7 - Only flag 2.2.0.0-dev as broken, not 2.2.0.0
|
||||||
|
// 5.0.6 - Bugfix lost TURNOUTL description
|
||||||
|
// 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user