AP_Arming: add type-correctness for is-armed check

Also, correct the constant we're testing against
This commit is contained in:
Peter Barker 2018-06-20 17:32:50 +10:00 committed by Peter Barker
parent 72d7181e0d
commit 5d1d435451

View File

@ -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()