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:
parent
402b1cba3f
commit
45ebbf2877
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user