mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 04:33:10 +08:00
mavlink_command_sender: don't try to resend command to instance which
did not request this command Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
@@ -172,7 +172,7 @@ void MavlinkCommandSender::check_timeout(mavlink_channel_t channel)
|
||||
}
|
||||
}
|
||||
|
||||
if (item->num_sent_per_channel[channel] < max_sent) {
|
||||
if (item->num_sent_per_channel[channel] < max_sent && item->num_sent_per_channel[channel] != -1) {
|
||||
// We are behind and need to do a retransmission.
|
||||
mavlink_msg_command_long_send_struct(channel, &item->command);
|
||||
item->num_sent_per_channel[channel]++;
|
||||
|
||||
Reference in New Issue
Block a user