8000 Fixed crash due to uninitialized variable (#116) · adityathakekar/esp8266-react@4e6823c · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e6823c

Browse files
authored
Fixed crash due to uninitialized variable (rjwats#116)
* Fixed crash due to uninitialized variable "Fatal exception 9(LoadStoreAlignmentCause)"
1 parent a59f32c commit 4e6823c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/framework/APSettingsService.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ APSettingsService::APSettingsService(AsyncWebServer* server, FS* fs, SecurityMan
77
server,
88
AP_SETTINGS_SERVICE_PATH,
99
securityManager),
10-
_fsPersistence(APSettings::serialize, APSettings::deserialize, this, fs, AP_SETTINGS_FILE) {
10+
_fsPersistence(APSettings::serialize, APSettings::deserialize, this, fs, AP_SETTINGS_FILE),
11+
_lastManaged(0),
12+
_dnsServer(nullptr) {
1113
addUpdateHandler([&](String originId) { reconfigureAP(); }, false);
1214
}
1315

lib/framework/OTASettingsService.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ OTASettingsService::OTASettingsService(AsyncWebServer* server, FS* fs, SecurityM
77
server,
88
OTA_SETTINGS_SERVICE_PATH,
99
securityManager),
10-
_fsPersistence(OTASettings::serialize, OTASettings::deserialize, this, fs, OTA_SETTINGS_FILE) {
10+
_fsPersistence(OTASettings::serialize, OTASettings::deserialize, this, fs, OTA_SETTINGS_FILE),
11+
_arduinoOTA(nullptr) {
1112
#ifdef ESP32
1213
WiFi.onEvent(std::bind(&OTASettingsService::onStationModeGotIP, this, std::placeholders::_1, std::placeholders::_2),
1314
WiFiEvent_t::SYSTEM_EVENT_STA_GOT_IP);

0 commit comments

Comments
 (0)
0