fix print no ble beacon received message
This commit is contained in:
@@ -152,7 +152,7 @@ void NukiOpenerWrapper::update()
|
|||||||
(ts - lastReceivedBeaconTs > _restartBeaconTimeout * 1000))
|
(ts - lastReceivedBeaconTs > _restartBeaconTimeout * 1000))
|
||||||
{
|
{
|
||||||
Log->print("No BLE beacon received from the opener for ");
|
Log->print("No BLE beacon received from the opener for ");
|
||||||
Log->print((millis() - _nukiOpener.getLastReceivedBeaconTs()) / 1000);
|
Log->print((millis() - lastReceivedBeaconTs) / 1000);
|
||||||
Log->println(" seconds, restarting device.");
|
Log->println(" seconds, restarting device.");
|
||||||
delay(200);
|
delay(200);
|
||||||
restartEsp(RestartReason::BLEBeaconWatchdog);
|
restartEsp(RestartReason::BLEBeaconWatchdog);
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ void NukiWrapper::update()
|
|||||||
(ts - lastReceivedBeaconTs > _restartBeaconTimeout * 1000))
|
(ts - lastReceivedBeaconTs > _restartBeaconTimeout * 1000))
|
||||||
{
|
{
|
||||||
Log->print("No BLE beacon received from the lock for ");
|
Log->print("No BLE beacon received from the lock for ");
|
||||||
Log->print((millis() - _nukiLock.getLastReceivedBeaconTs()) / 1000);
|
Log->print((millis() - lastReceivedBeaconTs) / 1000);
|
||||||
Log->println(" seconds, restarting device.");
|
Log->println(" seconds, restarting device.");
|
||||||
delay(200);
|
delay(200);
|
||||||
restartEsp(RestartReason::BLEBeaconWatchdog);
|
restartEsp(RestartReason::BLEBeaconWatchdog);
|
||||||
|
|||||||
Reference in New Issue
Block a user