mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
commander: don't beep if message is not understood
This commit is contained in:
parent
2ac0e1fc54
commit
3fa82675e7
@ -591,11 +591,11 @@ bool handle_command(struct vehicle_status_s *status, const struct safety_s *safe
|
||||
answer_command(*cmd, VEHICLE_CMD_RESULT_UNSUPPORTED);
|
||||
break;
|
||||
}
|
||||
|
||||
if (result != VEHICLE_CMD_RESULT_UNSUPPORTED) {
|
||||
/* already warned about unsupported commands in "default" case */
|
||||
answer_command(*cmd, result);
|
||||
}
|
||||
/* silently ignore unsupported commands, maybe they are passed on over mavlink */
|
||||
// if (result != VEHICLE_CMD_RESULT_UNSUPPORTED) {
|
||||
// /* already warned about unsupported commands in "default" case */
|
||||
// answer_command(*cmd, result);
|
||||
// }
|
||||
|
||||
/* send any requested ACKs */
|
||||
if (cmd->confirmation > 0 && result != VEHICLE_CMD_RESULT_UNSUPPORTED) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user