From c08584d2197137a3c5cf10b11502c29b0b3fafd5 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Tue, 27 Sep 2016 11:01:07 +0200 Subject: [PATCH] APMrover2: simply invalid cmd msg --- APMrover2/commands_logic.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/APMrover2/commands_logic.cpp b/APMrover2/commands_logic.cpp index 01117660cb..0f58386f19 100644 --- a/APMrover2/commands_logic.cpp +++ b/APMrover2/commands_logic.cpp @@ -192,11 +192,7 @@ bool Rover::verify_command(const AP_Mission::Mission_Command& cmd) default: // error message - if (AP_Mission::is_nav_cmd(cmd)) { - gcs_send_text(MAV_SEVERITY_WARNING,"Verify nav. Invalid or no current nav cmd"); - }else{ - gcs_send_text(MAV_SEVERITY_WARNING,"Verify condition. Invalid or no current condition cmd"); - } + gcs_send_text_fmt(MAV_SEVERITY_WARNING,"Skipping invalid cmd #%i",cmd.id); // return true if we do not recognize the command so that we move on to the next command return true; }