From 562d9a0e9096d3163d97473ecd13792fadd117f5 Mon Sep 17 00:00:00 2001 From: proddy Date: Tue, 1 Oct 2019 12:26:21 +0200 Subject: [PATCH] don't force AP when Wifi fails to connect first time --- src/MyESP.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MyESP.cpp b/src/MyESP.cpp index fdca2f8e7..563fe2771 100644 --- a/src/MyESP.cpp +++ b/src/MyESP.cpp @@ -318,9 +318,9 @@ void MyESP::_wifiCallback(justwifi_messages_t code, char * parameter) { if (code == MESSAGE_ACCESSPOINT_CREATING) { 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; - (void)_fs_writeConfig(); + // (void)_fs_writeConfig(); } if (code == MESSAGE_ACCESSPOINT_FAILED) {