1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-19 04:52:12 +01:00

LP-480 DSM: do not fail to initialize driver for ports without bind capability.

This commit is contained in:
Vladimir Zidar 2017-04-27 15:44:39 +02:00
parent 58e70c8849
commit 792746f775

View File

@ -318,12 +318,10 @@ int32_t PIOS_DSM_Init(uint32_t *dsm_id,
PIOS_DEBUG_Assert(driver->ioctl);
if ((driver->ioctl)(lower_id, PIOS_IOCTL_USART_GET_DSMBIND, &rxpin) < 0) {
return -1;
}
if ((driver->ioctl)(lower_id, PIOS_IOCTL_USART_GET_DSMBIND, &rxpin) == 0) {
PIOS_DSM_Bind(&rxpin, bind);
}
}
PIOS_DSM_ResetState(dsm_dev);