mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 14:33:33 +08:00
mavlink_mission: only accept a mission request list on an ongoing transfer, when it is the same partner
This commit is contained in:
@@ -730,8 +730,9 @@ MavlinkMissionManager::handle_mission_request_list(const mavlink_message_t *msg)
|
||||
switch_to_idle_state();
|
||||
}
|
||||
|
||||
if (_state == MAVLINK_WPM_STATE_IDLE || (_state == MAVLINK_WPM_STATE_SENDLIST
|
||||
&& (uint8_t)_mission_type == wprl.mission_type)) {
|
||||
if ((_state == MAVLINK_WPM_STATE_IDLE) || ((_state == MAVLINK_WPM_STATE_SENDLIST)
|
||||
&& ((uint8_t)_mission_type == wprl.mission_type) && (msg->sysid == _transfer_partner_sysid)
|
||||
&& (msg->compid == _transfer_partner_compid))) {
|
||||
_time_last_recv = hrt_absolute_time();
|
||||
|
||||
_state = MAVLINK_WPM_STATE_SENDLIST;
|
||||
|
||||
Reference in New Issue
Block a user