diff --git a/src/WiFiConfig.cpp b/src/WiFiConfig.cpp index 5e51db7..73de73e 100644 --- a/src/WiFiConfig.cpp +++ b/src/WiFiConfig.cpp @@ -940,6 +940,7 @@ void WiFiConfig::initConfig(int configBase, const String& ssid, const String& pa EES_storeString(configBase + offsetof(wificonfigarea_t, pass), elementSize(wificonfigarea_t, pass), (String &)pass); EEPROM.write(configBase + offsetof(wificonfigarea_t, mode), mode); EEPROM.write(configBase + offsetof(wificonfigarea_t, ip), ipcfg); + EEPROM.write(configBase + offsetof(wificonfigarea_t, apchannel), 3); if (IPCONFIG_STATIC == ipcfg) { setEEPROMuint32(configBase + offsetof(wificonfigarea_t, ipaddr), (uint32_t) ip); setEEPROMuint32(configBase + offsetof(wificonfigarea_t, netmask), (uint32_t) mask);