Fix preventing reboots in several cases
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user