mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-05-02 12:07:02 +00:00
upgrade if AP provision mode is AP_MODE_ALWAYS
This commit is contained in:
@@ -1645,6 +1645,15 @@ bool System::check_upgrade() {
|
|||||||
EMSESP::network_.reconnect();
|
EMSESP::network_.reconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// changes going to v3.9 from an earlier version
|
||||||
|
if (settings_version.major() == 3 && settings_version.minor() < 9) {
|
||||||
|
EMSESP::esp32React.getAPSettingsService()->update([&](APSettings & apSettings) {
|
||||||
|
apSettings.provisionMode = AP_MODE_DISCONNECTED; // AP_MODE_ALWAYS has been removed
|
||||||
|
LOG_INFO("Upgrade: Setting AP provision mode to auto");
|
||||||
|
return StateUpdateResult::CHANGED;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// changes to application settings
|
// changes to application settings
|
||||||
EMSESP::webSettingsService.update([&](WebSettings & settings) {
|
EMSESP::webSettingsService.update([&](WebSettings & settings) {
|
||||||
// force web buffer to 25 for those boards without psram
|
// force web buffer to 25 for those boards without psram
|
||||||
|
|||||||
Reference in New Issue
Block a user