fix print no ble beacon received message

This commit is contained in:
technyon
2024-06-16 04:48:44 +02:00
parent 8e2cae05d5
commit 65a129cd3c
2 changed files with 2 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ void NukiOpenerWrapper::update()
(ts - lastReceivedBeaconTs > _restartBeaconTimeout * 1000))
{
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.");
delay(200);
restartEsp(RestartReason::BLEBeaconWatchdog);

View File

@@ -180,7 +180,7 @@ void NukiWrapper::update()
(ts - lastReceivedBeaconTs > _restartBeaconTimeout * 1000))
{
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.");
delay(200);
restartEsp(RestartReason::BLEBeaconWatchdog);