AP_IOMCU: honour AP_RCPROTOCOL_X_ENABLED

This commit is contained in:
Peter Barker 2023-04-28 11:17:43 +10:00 committed by Andrew Tridgell
parent 18e55b9d6e
commit f1be6df93e
1 changed files with 6 additions and 0 deletions

View File

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