1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

usb cdc: use proper macro for CDC mgmt endpoint packet size

The hard-coded value (16) in the descriptor differed from the
macro (32) which was used to configure the low-level USB HW
block in the STM32.
This commit is contained in:
Stacey Sheldon 2012-01-04 00:38:19 -05:00
parent a6e03549f8
commit 3bc45b0036

View File

@ -146,7 +146,7 @@ const struct usb_board_config PIOS_USB_BOARD_Configuration = {
.bDescriptorType = USB_DESC_TYPE_ENDPOINT,
.bEndpointAddress = USB_EP_IN(2),
.bmAttributes = USB_EP_ATTR_TT_INTERRUPT,
.wMaxPacketSize = htousbs(16),
.wMaxPacketSize = htousbs(PIOS_USB_BOARD_CDC_MGMT_LENGTH),
.bInterval = 4, /* ms */
},
.cdc_data_if = {