mirror of https://github.com/ArduPilot/ardupilot
AP_IOMCU: honour AP_RCPROTOCOL_X_ENABLED
This commit is contained in:
parent
18e55b9d6e
commit
f1be6df93e
|
@ -74,9 +74,15 @@ void AP_IOMCU_FW::rcin_serial_init(void)
|
|||
SD_PARITY_ERROR);
|
||||
// disable input for SBUS with pulses, we will use the UART for
|
||||
// SBUS and FPORT
|
||||
#if AP_RCPROTOCOL_SBUS_ENABLED
|
||||
AP::RC().disable_for_pulses(AP_RCProtocol::SBUS);
|
||||
#endif
|
||||
#if AP_RCPROTOCOL_SBUS_NI_ENABLED
|
||||
AP::RC().disable_for_pulses(AP_RCProtocol::SBUS_NI);
|
||||
#endif
|
||||
#if AP_RCPROTOCOL_FPORT_ENABLED
|
||||
AP::RC().disable_for_pulses(AP_RCProtocol::FPORT);
|
||||
#endif
|
||||
}
|
||||
|
||||
static struct {
|
||||
|
|
Loading…
Reference in New Issue