1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 18:03:45 +02:00

empty SSID is "unconfigured" as well

This commit is contained in:
Harald Barth
2020-11-18 23:42:37 +01:00
parent 612cb95f85
commit df2e40fa11
2 changed files with 9 additions and 3 deletions

View File

@@ -172,7 +172,7 @@ wifiSerialState WifiInterface::setup2(const __FlashStringHelper* SSid, const __F
// ESP8266 is preconfigured. We check the first 13 chars
// of the SSid.
char *yourNetwork = "Your network ";
if (strncmp_P(yourNetwork, (const char*)SSid, 13) == 0) {
if (strncmp_P(yourNetwork, (const char*)SSid, 13) == 0 || SSid[0] == '\0') {
delay(8000); // give a preconfigured ES8266 a chance to connect to a router
StringFormatter::send(wifiStream, F("AT+CIFSR\r\n"));