Fix WifiConfig error

This commit is contained in:
Theo Arends 2019-12-22 11:52:54 +01:00
parent acb7a51ebf
commit f642f014b7
2 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@
- Fix Arduino IDE compile error (#7277) - Fix Arduino IDE compile error (#7277)
- Fix restore ShutterAccuracy, MqttLog, WifiConfig, WifiPower and SerialConfig (#7281) - Fix restore ShutterAccuracy, MqttLog, WifiConfig, WifiPower and SerialConfig (#7281)
- Fix no AP on initial install (#7282) - Fix no AP on initial install (#7282)
- Fix failing downgrade (#7285)
### 7.1.2.6 20191214 ### 7.1.2.6 20191214

View File

@ -488,7 +488,7 @@ void UpdateQuickPowerCycle(bool update)
* Config Settings.text char array support * Config Settings.text char array support
\*********************************************************************************************/ \*********************************************************************************************/
const uint32_t settings_text_size = 699; // Settings.flag4 (2D2) - Settings.ota_url (017) const uint32_t settings_text_size = 699; // Settings.display_model (2D2) - Settings.ota_url (017)
uint32_t GetSettingsTextLen(void) uint32_t GetSettingsTextLen(void)
{ {
@ -1280,7 +1280,7 @@ void SettingsDelta(void)
Settings.ex_energy_power_delta = 0; Settings.ex_energy_power_delta = 0;
} }
if (Settings.version < 0x06060015) { if (Settings.version < 0x06060015) {
if ((EX_WIFI_SMARTCONFIG == Settings.sta_config) || (EX_WIFI_WPSCONFIG == Settings.sta_config)) { if ((EX_WIFI_SMARTCONFIG == Settings.ex_sta_config) || (EX_WIFI_WPSCONFIG == Settings.ex_sta_config)) {
Settings.ex_sta_config = WIFI_MANAGER; Settings.ex_sta_config = WIFI_MANAGER;
} }
} }