AP_IOMCU: remove intermediate option_is_enabled methods for RC_Channel

This commit is contained in:
Peter Barker 2023-06-11 15:58:15 +10:00 committed by Randy Mackay
parent 7ccf8e62ce
commit 1e81ef93a4
1 changed files with 1 additions and 1 deletions

View File

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