APM: make error msg clearer

This commit is contained in:
Andrew Tridgell 2012-09-26 20:15:53 +10:00
parent e8c4dedcd7
commit 0495a0debc

View File

@ -15,7 +15,7 @@ void change_command(uint8_t cmd_index)
temp = get_cmd_with_index(cmd_index); temp = get_cmd_with_index(cmd_index);
if (temp.id > MAV_CMD_NAV_LAST ) { if (temp.id > MAV_CMD_NAV_LAST ) {
gcs_send_text_P(SEVERITY_LOW,PSTR("Bad Request - cannot change to non-Nav cmd")); gcs_send_text_fmt(PSTR("Cannot change to non-Nav cmd %u"), (unsigned)cmd_index);
} else { } else {
gcs_send_text_fmt(PSTR("Received Request - jump to command #%i"),cmd_index); gcs_send_text_fmt(PSTR("Received Request - jump to command #%i"),cmd_index);