Rover: prevent unsupported command messages

this prevents errors on DO_CHANGE_SPEED
This commit is contained in:
Andrew Tridgell 2014-06-04 14:00:31 +10:00
parent 0ca5a60f25
commit a1b94bf852

View File

@ -161,6 +161,10 @@ static bool verify_command(const AP_Mission::Mission_Command& cmd)
break;
default:
if (cmd.id > MAV_CMD_CONDITION_LAST) {
// this is a command that doesn't require verify
return true;
}
gcs_send_text_P(SEVERITY_HIGH,PSTR("verify_conditon: Unsupported command"));
return true;
break;