mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 03:33:35 +08:00
Only update heartbeat timestamp if current
This commit is contained in:
@@ -1556,7 +1556,9 @@ int commander_thread_main(int argc, char *argv[])
|
|||||||
_usb_telemetry_active = true;
|
_usb_telemetry_active = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
telemetry_last_heartbeat[i] = telemetry.heartbeat_time;
|
if (telemetry.heartbeat_time > 0) {
|
||||||
|
telemetry_last_heartbeat[i] = telemetry.heartbeat_time;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user