From 6f1dd6a7badac45bc925251c4ff5cb74c0ed7203 Mon Sep 17 00:00:00 2001 From: Pavel Brychta Date: Tue, 20 Oct 2020 07:43:52 +0200 Subject: [PATCH] Inicializace AP kanalu --- src/WiFiConfig.cpp | 1 + 1 file changed, 1 insertion(+) 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);