From a1b94bf852c32c9ecafe35252c87d5f2e4beaf57 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 4 Jun 2014 14:00:31 +1000 Subject: [PATCH] Rover: prevent unsupported command messages this prevents errors on DO_CHANGE_SPEED --- APMrover2/commands_logic.pde | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/APMrover2/commands_logic.pde b/APMrover2/commands_logic.pde index 5e97f88aeb..25cb67265a 100644 --- a/APMrover2/commands_logic.pde +++ b/APMrover2/commands_logic.pde @@ -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;