Fixed crash due to uninitialized variable (#116)
* Fixed crash due to uninitialized variable "Fatal exception 9(LoadStoreAlignmentCause)"
This commit is contained in:
parent
a59f32c420
commit
4e6823ceec
@ -7,7 +7,9 @@ APSettingsService::APSettingsService(AsyncWebServer* server, FS* fs, SecurityMan
|
|||||||
server,
|
server,
|
||||||
AP_SETTINGS_SERVICE_PATH,
|
AP_SETTINGS_SERVICE_PATH,
|
||||||
securityManager),
|
securityManager),
|
||||||
_fsPersistence(APSettings::serialize, APSettings::deserialize, this, fs, AP_SETTINGS_FILE) {
|
_fsPersistence(APSettings::serialize, APSettings::deserialize, this, fs, AP_SETTINGS_FILE),
|
||||||
|
_lastManaged(0),
|
||||||
|
_dnsServer(nullptr) {
|
||||||
addUpdateHandler([&](String originId) { reconfigureAP(); }, false);
|
addUpdateHandler([&](String originId) { reconfigureAP(); }, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,8 @@ OTASettingsService::OTASettingsService(AsyncWebServer* server, FS* fs, SecurityM
|
|||||||
server,
|
server,
|
||||||
OTA_SETTINGS_SERVICE_PATH,
|
OTA_SETTINGS_SERVICE_PATH,
|
||||||
securityManager),
|
securityManager),
|
||||||
_fsPersistence(OTASettings::serialize, OTASettings::deserialize, this, fs, OTA_SETTINGS_FILE) {
|
_fsPersistence(OTASettings::serialize, OTASettings::deserialize, this, fs, OTA_SETTINGS_FILE),
|
||||||
|
_arduinoOTA(nullptr) {
|
||||||
#ifdef ESP32
|
#ifdef ESP32
|
||||||
WiFi.onEvent(std::bind(&OTASettingsService::onStationModeGotIP, this, std::placeholders::_1, std::placeholders::_2),
|
WiFi.onEvent(std::bind(&OTASettingsService::onStationModeGotIP, this, std::placeholders::_1, std::placeholders::_2),
|
||||||
WiFiEvent_t::SYSTEM_EVENT_STA_GOT_IP);
|
WiFiEvent_t::SYSTEM_EVENT_STA_GOT_IP);
|
||||||
|
Loading…
Reference in New Issue
Block a user