From 1e81ef93a428b5d89371c5d606030d6bce180a4f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 11 Jun 2023 15:58:15 +1000 Subject: [PATCH] AP_IOMCU: remove intermediate option_is_enabled methods for RC_Channel --- libraries/AP_IOMCU/AP_IOMCU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_IOMCU/AP_IOMCU.cpp b/libraries/AP_IOMCU/AP_IOMCU.cpp index 7e2ab850a9..6040737c2d 100644 --- a/libraries/AP_IOMCU/AP_IOMCU.cpp +++ b/libraries/AP_IOMCU/AP_IOMCU.cpp @@ -326,7 +326,7 @@ void AP_IOMCU::read_rc_input() if (!read_registers(PAGE_RAW_RCIN, 0, sizeof(rc_input)/2, r)) { return; } - if (rc_input.flags_failsafe && rc().ignore_rc_failsafe()) { + if (rc_input.flags_failsafe && rc().option_is_enabled(RC_Channels::Option::IGNORE_FAILSAFE)) { rc_input.flags_failsafe = false; } if (rc_input.flags_rc_ok && !rc_input.flags_failsafe) {