Skip to content

Commit

Permalink
Update libopencm3 to 201f5bcfb3fa70ee34818152463e7139f24db377
Browse files Browse the repository at this point in the history
  • Loading branch information
dallmair committed Oct 18, 2024
1 parent ff6eff9 commit d326c80
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/USB/cdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ cdc_control_class_request(usbd_device *usbd_dev,

break;
}
case USB_CDC_REQ_GET_LINE_CODING: {
case USB_CDC_REQ_GET_LINE_CODING:
case USB_CDC_REQ_GET_LINE_CODING_ALT: {
struct usb_cdc_line_coding *coding;
coding = (struct usb_cdc_line_coding*)(*buf);

Expand Down
2 changes: 1 addition & 1 deletion src/USB/cdc_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "cdc.h"

#define USB_CDC_REQ_GET_LINE_CODING 0xA0
#define USB_CDC_REQ_GET_LINE_CODING_ALT 0xA0

struct cdc_acm_functional_descriptors {
struct usb_cdc_header_descriptor header;
Expand Down
3 changes: 2 additions & 1 deletion src/USB/vcdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ vcdc_control_class_request(usbd_device *usbd_dev,
status = USBD_REQ_HANDLED;
break;
}
case USB_CDC_REQ_GET_LINE_CODING: {
case USB_CDC_REQ_GET_LINE_CODING:
case USB_CDC_REQ_GET_LINE_CODING_ALT: {
/* Send back a dummy default coding */
struct usb_cdc_line_coding *coding;
coding = (struct usb_cdc_line_coding*)(*buf);
Expand Down

0 comments on commit d326c80

Please sign in to comment.