mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-03 11:24:10 +01:00
Merged in alessiomorale/librepilot/LP-369_fix_vcp_availability (pull request #295)
LP-369 - Fix cdc availability condition
This commit is contained in:
commit
88942f6244
@ -454,7 +454,7 @@ static uint32_t PIOS_USB_CDC_Available(uint32_t usbcdc_id)
|
|||||||
PIOS_Assert(valid);
|
PIOS_Assert(valid);
|
||||||
|
|
||||||
return (PIOS_USB_CheckAvailable(usb_cdc_dev->lower_id) &&
|
return (PIOS_USB_CheckAvailable(usb_cdc_dev->lower_id) &&
|
||||||
(control_line_state & USB_CDC_CONTROL_LINE_STATE_DTE_PRESENT)) ? COM_AVAILABLE_NONE : COM_AVAILABLE_RXTX;
|
(control_line_state & USB_CDC_CONTROL_LINE_STATE_DTE_PRESENT)) ? COM_AVAILABLE_RXTX : COM_AVAILABLE_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user