AP_Arming: fix aux auth arming check

This commit is contained in:
Iampete1 2020-11-11 00:42:50 +00:00 committed by Andrew Tridgell
parent d6a1af4690
commit 36eb605de5
1 changed files with 4 additions and 2 deletions

View File

@ -1073,8 +1073,10 @@ bool AP_Arming::aux_auth_checks(bool display_failure)
}
// send failure or waiting message
if (some_failures && !failure_msg_sent) {
check_failed(ARMING_CHECK_AUX_AUTH, display_failure, "Auxiliary authorisation refused");
if (some_failures) {
if (!failure_msg_sent) {
check_failed(ARMING_CHECK_AUX_AUTH, display_failure, "Auxiliary authorisation refused");
}
return false;
} else if (waiting_for_responses) {
check_failed(ARMING_CHECK_AUX_AUTH, display_failure, "Waiting for auxiliary authorisation");