From b4e21c5176ad01a698ee9567ea844a6f2c6954e6 Mon Sep 17 00:00:00 2001 From: Denis Denisov Date: Sun, 12 Sep 2021 16:01:40 +0300 Subject: [PATCH] Fix preventing reboots in several cases --- thermo_sensor/thermo_sensor.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/thermo_sensor/thermo_sensor.ino b/thermo_sensor/thermo_sensor.ino index 6898ae1..15dd892 100644 --- a/thermo_sensor/thermo_sensor.ino +++ b/thermo_sensor/thermo_sensor.ino @@ -117,6 +117,7 @@ void loop() { ParseIncomingPacket(); } + current = millis(); if (current < last_ping || current - last_ping >= PING_INTERVAL) { // no pings for long time, reboot