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