mirror of https://github.com/ArduPilot/ardupilot
AP_IOMCU: remove intermediate option_is_enabled methods for RC_Channel
This commit is contained in:
parent
7ccf8e62ce
commit
1e81ef93a4
|
@ -326,7 +326,7 @@ void AP_IOMCU::read_rc_input()
|
||||||
if (!read_registers(PAGE_RAW_RCIN, 0, sizeof(rc_input)/2, r)) {
|
if (!read_registers(PAGE_RAW_RCIN, 0, sizeof(rc_input)/2, r)) {
|
||||||
return;
|
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;
|
rc_input.flags_failsafe = false;
|
||||||
}
|
}
|
||||||
if (rc_input.flags_rc_ok && !rc_input.flags_failsafe) {
|
if (rc_input.flags_rc_ok && !rc_input.flags_failsafe) {
|
||||||
|
|
Loading…
Reference in New Issue