mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Rover: use check_enabked hepler to always check if all bit is set
This commit is contained in:
parent
31ba715616
commit
65a2ec5b6a
@ -5,7 +5,7 @@
|
|||||||
bool AP_Arming_Rover::rc_calibration_checks(const bool display_failure)
|
bool AP_Arming_Rover::rc_calibration_checks(const bool display_failure)
|
||||||
{
|
{
|
||||||
// set rc-checks to success if RC checks are disabled
|
// set rc-checks to success if RC checks are disabled
|
||||||
if ((checks_to_perform != ARMING_CHECK_ALL) && !(checks_to_perform & ARMING_CHECK_RC)) {
|
if (!check_enabled(ARMING_CHECK_RC)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,7 +180,7 @@ bool AP_Arming_Rover::oa_check(bool report)
|
|||||||
bool AP_Arming_Rover::parameter_checks(bool report)
|
bool AP_Arming_Rover::parameter_checks(bool report)
|
||||||
{
|
{
|
||||||
// success if parameter checks are disabled
|
// success if parameter checks are disabled
|
||||||
if ((checks_to_perform != ARMING_CHECK_ALL) && !(checks_to_perform & ARMING_CHECK_PARAMETERS)) {
|
if (!check_enabled(ARMING_CHECK_PARAMETERS)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user