Browse Source

commander: don't beep if message is not understood

sbg
Julian Oes 11 years ago
parent
commit
ed7b97c020
  1. 10
      src/modules/commander/commander.cpp

10
src/modules/commander/commander.cpp

@ -592,11 +592,11 @@ bool handle_command(struct vehicle_status_s *status, const struct safety_s *safe
answer_command(*cmd, VEHICLE_CMD_RESULT_UNSUPPORTED); answer_command(*cmd, VEHICLE_CMD_RESULT_UNSUPPORTED);
break; break;
} }
/* silently ignore unsupported commands, maybe they are passed on over mavlink */
if (result != VEHICLE_CMD_RESULT_UNSUPPORTED) { // if (result != VEHICLE_CMD_RESULT_UNSUPPORTED) {
/* already warned about unsupported commands in "default" case */ // /* already warned about unsupported commands in "default" case */
answer_command(*cmd, result); // answer_command(*cmd, result);
} // }
/* send any requested ACKs */ /* send any requested ACKs */
if (cmd->confirmation > 0 && result != VEHICLE_CMD_RESULT_UNSUPPORTED) { if (cmd->confirmation > 0 && result != VEHICLE_CMD_RESULT_UNSUPPORTED) {

Loading…
Cancel
Save