AP_Arming: correct check against ARMING_CHECK_NONE

As opposed to all of the other ARMING_CHECK values this one isn't
actually a mask
This commit is contained in:
Peter Barker 2019-04-25 10:53:36 +10:00 committed by Peter Barker
parent 402b1cba3f
commit 45ebbf2877

View File

@ -137,9 +137,6 @@ bool AP_Arming::check_enabled(const enum AP_Arming::ArmingChecks check) const
if (checks_to_perform & ARMING_CHECK_ALL) {
return true;
}
if (checks_to_perform & ARMING_CHECK_NONE) {
return false;
}
return (checks_to_perform & check);
}