force wifi_mode to AP when fallback to AP - https://github.com/proddy/EMS-ESP/issues/187

This commit is contained in:
Paul
2019-09-22 12:45:57 +02:00
parent 6c52e8a364
commit d820e72994

View File

@@ -316,6 +316,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
_network_wmode = 1;
(void)_fs_writeConfig();
}
if (code == MESSAGE_ACCESSPOINT_FAILED) {