ArduCopter: use check_enabled helper

This commit is contained in:
Iampete1 2023-01-21 13:23:07 +00:00 committed by Randy Mackay
parent 6c8064da96
commit 001eb20fc3

View File

@ -539,7 +539,7 @@ bool AP_Arming_Copter::winch_checks(bool display_failure) const
{
#if WINCH_ENABLED == ENABLED
// pass if parameter or all arming checks disabled
if (((checks_to_perform & ARMING_CHECK_ALL) == 0) && ((checks_to_perform & ARMING_CHECK_PARAMETERS) == 0)) {
if (!check_enabled(ARMING_CHECK_PARAMETERS)) {
return true;
}