Skip to content
Snippets Groups Projects
Commit b48c081e authored by lovettchris's avatar lovettchris Committed by Lorenz Meier
Browse files

Reset _transfer_in_progress if mavlink transfer times out. (#5077)

parent 87e964ec
No related branches found
No related tags found
No related merge requests found
......@@ -346,6 +346,9 @@ MavlinkMissionManager::send(const hrt_abstime now)
_state = MAVLINK_WPM_STATE_IDLE;
// since we are giving up, reset this state also, so another request can be started.
_transfer_in_progress = false;
} else if (_state == MAVLINK_WPM_STATE_GETLIST && hrt_elapsed_time(&_time_last_sent) > _retry_timeout) {
/* try to request item again after timeout */
send_mission_request(_transfer_partner_sysid, _transfer_partner_compid, _transfer_seq);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment