Only update heartbeat timestamp if current

This commit is contained in:
Lorenz Meier 2015-12-21 14:14:17 +01:00
parent e525ab3b73
commit e9b4946d9f

View File

@ -1556,7 +1556,9 @@ int commander_thread_main(int argc, char *argv[])
_usb_telemetry_active = true;
}
telemetry_last_heartbeat[i] = telemetry.heartbeat_time;
if (telemetry.heartbeat_time > 0) {
telemetry_last_heartbeat[i] = telemetry.heartbeat_time;
}
}
}