mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
AP_HAL_ChibiOS: Binding update for DSM
This commit is contained in:
parent
843772a2bc
commit
032c5ab707
@ -168,9 +168,17 @@ 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();
|
||||
rcin_prot.start_bind(dsmMode);
|
||||
#endif
|
||||
|
||||
#if HAL_RCINPUT_WITH_AP_RADIO
|
||||
|
Loading…
Reference in New Issue
Block a user