From 001eb20fc3edf77db5515642a7c9c6e3f330d4e0 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sat, 21 Jan 2023 13:23:07 +0000 Subject: [PATCH] ArduCopter: use check_enabled helper --- ArduCopter/AP_Arming.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/AP_Arming.cpp b/ArduCopter/AP_Arming.cpp index a9a87490e1..154970ff14 100644 --- a/ArduCopter/AP_Arming.cpp +++ b/ArduCopter/AP_Arming.cpp @@ -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; }