HAL_ChibiOS: support DSM bind on IOMCU

This commit is contained in:
Andrew Tridgell 2019-05-10 11:56:11 +10:00
parent 4378d92c6e
commit 3ce762ab7c

View File

@ -168,6 +168,14 @@ void RCInput::_timer_tick(void)
*/
bool RCInput::rc_bind(int dsmMode)
{
#if HAL_WITH_IO_MCU
rcin_mutex.take(HAL_SEMAPHORE_BLOCK_FOREVER);
if (AP_BoardConfig::io_enabled()) {
iomcu.bind_dsm(dsmMode);
}
rcin_mutex.give();
#endif
#if HAL_USE_ICU == TRUE
// ask AP_RCProtocol to start a bind
rcin_prot.start_bind();