don't force AP when Wifi fails to connect first time

This commit is contained in:
proddy
2019-10-01 12:26:21 +02:00
parent 1aace72255
commit 562d9a0e90

View File

@@ -318,9 +318,9 @@ void MyESP::_wifiCallback(justwifi_messages_t code, char * parameter) {
if (code == MESSAGE_ACCESSPOINT_CREATING) { if (code == MESSAGE_ACCESSPOINT_CREATING) {
myDebug_P(PSTR("[WIFI] Creating access point")); myDebug_P(PSTR("[WIFI] Creating access point"));
// for setting of wifi mode to AP and save // for setting of wifi mode to AP, but don't save
_network_wmode = 1; _network_wmode = 1;
(void)_fs_writeConfig(); // (void)_fs_writeConfig();
} }
if (code == MESSAGE_ACCESSPOINT_FAILED) { if (code == MESSAGE_ACCESSPOINT_FAILED) {