Sub: Fix redundant check in MAV_CMD_MISSION_START

This commit is contained in:
Jacob Walser 2017-04-13 15:36:54 -04:00
parent 84527d6e66
commit 6a443fcce4
1 changed files with 0 additions and 3 deletions

View File

@ -1242,9 +1242,6 @@ void GCS_MAVLINK_Sub::handleMessage(mavlink_message_t* msg)
case MAV_CMD_MISSION_START:
if (sub.motors.armed() && sub.set_mode(AUTO, MODE_REASON_GCS_COMMAND)) {
if (sub.mission.state() != AP_Mission::MISSION_RUNNING) {
sub.mission.start_or_resume();
}
result = MAV_RESULT_ACCEPTED;
}
break;