Fix preventing reboots in several cases

This commit is contained in:
ftc
2021-09-12 16:01:40 +03:00
parent cfd8d4c018
commit b4e21c5176
+1
View File
@@ -117,6 +117,7 @@ void loop()
{ {
ParseIncomingPacket(); ParseIncomingPacket();
} }
current = millis();
if (current < last_ping || current - last_ping >= PING_INTERVAL) if (current < last_ping || current - last_ping >= PING_INTERVAL)
{ {
// no pings for long time, reboot // no pings for long time, reboot