From d53fe3e520aa7fca2bdae482c7971fe099925a18 Mon Sep 17 00:00:00 2001 From: Arne-W Date: Tue, 14 Feb 2023 21:34:37 +0100 Subject: [PATCH] Comms: Fix wrong system ID and component ID for timesync message. Fixes #1270 --- src/uas/UAS.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 2069d26f1..a8b24ed38 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -1436,7 +1436,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) // QLOG_DEBUG() << "timesync tc1:" << timeSync.tc1 << " ts1:" << timeSync.ts1; mavlink_message_t answer; - mavlink_msg_timesync_encode(message.sysid, message.compid, &answer, &timeSync); + mavlink_msg_timesync_encode(systemId, componentId, &answer, &timeSync); sendMessage(answer); break; }