add not applicable as restart reason

This commit is contained in:
technyon
2023-03-09 21:07:14 +01:00
parent 10608040c5
commit 1b60087b27
3 changed files with 15 additions and 4 deletions

View File

@@ -31,6 +31,7 @@ unsigned long restartTs = (2^32) - 5 * 60000;
RTC_NOINIT_ATTR int restartReason;
RTC_NOINIT_ATTR uint64_t restartReasonValid;
RestartReason currentRestartReason = RestartReason::NotApplicable;
TaskHandle_t networkTaskHandle = nullptr;
TaskHandle_t nukiTaskHandle = nullptr;
@@ -167,6 +168,7 @@ void setup()
Log->print(F("NUKI Hub version ")); Log->println(NUKI_HUB_VERSION);
bool firstStart = initPreferences();
initializeRestartReason();
if(preferences->getInt(preference_restart_timer) > 0)
{