Keep last reason for reboot

This commit is contained in:
Gunnar Skjold
2023-12-03 21:38:20 +01:00
parent 09d255d656
commit ddd08e25df
3 changed files with 34 additions and 7 deletions

View File

@@ -102,7 +102,12 @@ EntsoeApi* eapi = NULL;
Timezone* tz = NULL;
AmsWebServer ws(commonBuffer, &Debug, &hw);
#if defined(ESP32)
__NOINIT_ATTR ResetDataContainer rdc;
#else
ResetDataContainer rdc;
#endif
AmsWebServer ws(commonBuffer, &Debug, &hw, &rdc);
bool mqttEnabled = false;
AmsMqttHandler* mqttHandler = NULL;