add restart reason to sysinfo page
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "PreferencesKeys.h"
|
||||
#include "MqttTopics.h"
|
||||
#include "Logger.h"
|
||||
#include "RestartReason.h"
|
||||
#include <NukiOpenerUtils.h>
|
||||
|
||||
NukiOpenerWrapper* nukiOpenerInst;
|
||||
@@ -108,7 +109,7 @@ void NukiOpenerWrapper::update()
|
||||
Log->print((millis() - _nukiOpener.getLastReceivedBeaconTs()) / 1000);
|
||||
Log->println(" seconds, restarting device.");
|
||||
delay(200);
|
||||
ESP.restart();
|
||||
restartEsp(RestartReason::BLEBeaconWatchdog);
|
||||
}
|
||||
|
||||
_nukiOpener.updateConnectionState();
|
||||
|
||||
Reference in New Issue
Block a user