Skip to content

Commit

Permalink
Comms: Fix wrong system ID and component ID for timesync message. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Arne-W committed Mar 11, 2023
1 parent ba4aff2 commit d53fe3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uas/UAS.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d53fe3e

Please sign in to comment.