mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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);
|
SD_PARITY_ERROR);
|
||||||
// disable input for SBUS with pulses, we will use the UART for
|
// disable input for SBUS with pulses, we will use the UART for
|
||||||
// SBUS and FPORT
|
// SBUS and FPORT
|
||||||
|
#if AP_RCPROTOCOL_SBUS_ENABLED
|
||||||
AP::RC().disable_for_pulses(AP_RCProtocol::SBUS);
|
AP::RC().disable_for_pulses(AP_RCProtocol::SBUS);
|
||||||
|
#endif
|
||||||
|
#if AP_RCPROTOCOL_SBUS_NI_ENABLED
|
||||||
AP::RC().disable_for_pulses(AP_RCProtocol::SBUS_NI);
|
AP::RC().disable_for_pulses(AP_RCProtocol::SBUS_NI);
|
||||||
|
#endif
|
||||||
|
#if AP_RCPROTOCOL_FPORT_ENABLED
|
||||||
AP::RC().disable_for_pulses(AP_RCProtocol::FPORT);
|
AP::RC().disable_for_pulses(AP_RCProtocol::FPORT);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user