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; }