1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

usb cdc: advertise support for line coding and serial state

The CDC descriptor was not advertising support the the line
coding and serial state messages.  This was preventing Mac
from sending the SetControlLineState message to indicate
that a DTE (ie terminal program) was present and reading
from the serial port.

We support (and depend on) the DTE indication now so this
was making CDC not work on Mac.

Linux seems to provide the indication regardless of whether
it is advertised in the descriptor or not.
This commit is contained in:
Stacey Sheldon 2013-03-28 11:45:36 -04:00 committed by Alessio Morale
parent 0e0571149b
commit 0d8fe83dca

View File

@ -235,7 +235,7 @@ static const struct usb_config_hid_cdc config_hid_cdc = {
.bLength = sizeof(struct usb_cdc_acm_func_desc),
.bDescriptorType = USB_DESC_TYPE_CLASS_SPECIFIC,
.bDescriptorSubType = USB_CDC_DESC_SUBTYPE_ABSTRACT_CTRL,
.bmCapabilities = 0x00,
.bmCapabilities = 0x02, /* line coding and serial state */
},
.cdc_union = {
.bLength = sizeof(struct usb_cdc_union_func_desc),