Skip to content

Commit d326c80

Browse files
committed
Update libopencm3 to 201f5bcfb3fa70ee34818152463e7139f24db377
1 parent ff6eff9 commit d326c80

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

src/USB/cdc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ cdc_control_class_request(usbd_device *usbd_dev,
150150

151151
break;
152152
}
153-
case USB_CDC_REQ_GET_LINE_CODING: {
153+
case USB_CDC_REQ_GET_LINE_CODING:
154+
case USB_CDC_REQ_GET_LINE_CODING_ALT: {
154155
struct usb_cdc_line_coding *coding;
155156
coding = (struct usb_cdc_line_coding*)(*buf);
156157

src/USB/cdc_defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#include "cdc.h"
2323

24-
#define USB_CDC_REQ_GET_LINE_CODING 0xA0
24+
#define USB_CDC_REQ_GET_LINE_CODING_ALT 0xA0
2525

2626
struct cdc_acm_functional_descriptors {
2727
struct usb_cdc_header_descriptor header;

src/USB/vcdc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ vcdc_control_class_request(usbd_device *usbd_dev,
173173
status = USBD_REQ_HANDLED;
174174
break;
175175
}
176-
case USB_CDC_REQ_GET_LINE_CODING: {
176+
case USB_CDC_REQ_GET_LINE_CODING:
177+
case USB_CDC_REQ_GET_LINE_CODING_ALT: {
177178
/* Send back a dummy default coding */
178179
struct usb_cdc_line_coding *coding;
179180
coding = (struct usb_cdc_line_coding*)(*buf);

0 commit comments

Comments
 (0)