Skip to content

Commit bca085c

Browse files
committed
Fixes for boot loop issue with Arduino 6.4.0
1 parent cc368b4 commit bca085c

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.2.1] - 2023-09-11
6+
7+
### Fixed
8+
9+
- Fixed the boot loop issue for Arduino 6.4.0
10+
511
## [0.2.0] - 2023-08-03
612

713
### Added

factory_settings.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[factory_settings]
88
build_flags =
99
; Global Settings
10-
-D FIRMWARE_VERSION=\"0.2.0\"
10+
-D FIRMWARE_VERSION=\"0.2.1\"
1111

1212
; WiFi settings
1313
-D FACTORY_WIFI_SSID=\"\"

lib/framework/WiFiSettingsService.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ WiFiSettingsService::WiFiSettingsService(AsyncWebServer *server, FS *fs, Securit
1818
_fsPersistence(WiFiSettings::read, WiFiSettings::update, this, fs, WIFI_SETTINGS_FILE),
1919
_lastConnectionAttempt(0),
2020
_notificationEvents(notificationEvents)
21+
{
22+
addUpdateHandler([&](const String &originId)
23+
{ reconfigureWiFiConnection(); },
24+
false);
25+
}
26+
27+
void WiFiSettingsService::begin()
2128
{
2229
// We want the device to come up in opmode=0 (WIFI_OFF), when erasing the flash this is not the default.
2330
// If needed, we save opmode=0 before disabling persistence so the device boots with WiFi disabled in the future.
@@ -39,13 +46,6 @@ WiFiSettingsService::WiFiSettingsService(AsyncWebServer *server, FS *fs, Securit
3946
WiFi.onEvent(std::bind(&WiFiSettingsService::onStationModeStop, this, std::placeholders::_1, std::placeholders::_2),
4047
WiFiEvent_t::ARDUINO_EVENT_WIFI_STA_STOP);
4148

42-
addUpdateHandler([&](const String &originId)
43-
{ reconfigureWiFiConnection(); },
44-
false);
45-
}
46-
47-
void WiFiSettingsService::begin()
48-
{
4949
_fsPersistence.readFromFS();
5050
reconfigureWiFiConnection();
5151
}

platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ default_envs = esp32-s3-devkitc-1
1818

1919
[env]
2020
framework = arduino
21-
platform = espressif32 @ 6.3.2
21+
platform = espressif32
2222
build_flags =
2323
${factory_settings.build_flags}
2424
${features.build_flags}

0 commit comments

Comments
 (0)