Commit d2d79f5e authored by Don Gagne's avatar Don Gagne

Fix compiler warning

parent 765222eb
......@@ -472,7 +472,7 @@ void MockLink::_handleMissionRequest(const mavlink_message_t& msg)
mavlink_msg_mission_request_decode(&msg, &request);
if (request.target_system == _vehicleSystemId) {
if (request.seq >= 0 && request.seq < _missionItems.count()) {
if (request.seq < _missionItems.count()) {
mavlink_message_t responseMsg;
mavlink_mission_item_t item = _missionItems[request.seq];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment