AP_Arming: add type-correctness for is-armed check
Also, correct the constant we're testing against
This commit is contained in:
parent
72d7181e0d
commit
5d1d435451
@ -95,7 +95,7 @@ uint16_t AP_Arming::compass_magfield_expected() const
|
||||
|
||||
bool AP_Arming::is_armed()
|
||||
{
|
||||
return require == NONE || armed;
|
||||
return (ArmingRequired)require.get() == NO || armed;
|
||||
}
|
||||
|
||||
uint16_t AP_Arming::get_enabled_checks()
|
||||
|
Loading…
Reference in New Issue
Block a user