mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
LP-480 DSM: do not fail to initialize driver for ports without bind capability.
This commit is contained in:
parent
58e70c8849
commit
792746f775
@ -318,11 +318,9 @@ 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_Bind(&rxpin, bind);
|
||||
}
|
||||
|
||||
PIOS_DSM_ResetState(dsm_dev);
|
||||
|
Loading…
x
Reference in New Issue
Block a user