mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 08:47:35 +08:00
[uxrce_dds_client] Fix debug string format - use PRId64 and llabs
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
This commit is contained in:
committed by
Daniel Agar
parent
5af6cf1889
commit
f01400de81
@@ -264,8 +264,8 @@ void UxrceddsClient::syncSystemClock(uxrSession *session)
|
||||
|
||||
if (delta < 5_s) {
|
||||
// Only set the time if it's more than 5 seconds off (matches Mavlink and GPS logic)
|
||||
PX4_DEBUG("agents UTC time is %s by %lld us, not setting clock", agent_utc > system_utc ? "ahead" : "behind",
|
||||
abs(system_utc - agent_utc));
|
||||
PX4_DEBUG("agents UTC time is %s by %-5" PRId64 "us, not setting clock", agent_utc > system_utc ? "ahead" : "behind",
|
||||
llabs(system_utc - agent_utc));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user