Skip to content

Commit

Permalink
subsys: usb: Fixes USB DFU class by updating the bcdUSB value.
Browse files Browse the repository at this point in the history
bcdUSB has been previously updated from 1.1 to 2.0 in default
device descriptor, but not in DFU class. After USB bus reset
performed by dfu-util, alternative descriptor is registered
with bcdUSB set to 1.1. This mismatch causes communication failure.
DFU descriptor's bcdUSB has been updated to match default one.

Relates to #7570

Signed-off-by: Paweł Zadrożniak <pawel.zadrozniak@nordicsemi.no>
  • Loading branch information
pawelzadrozniak authored and carlescufi committed Jun 27, 2018
1 parent 5e3c48f commit f3d1b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/usb/class/usb_dfu.c
Expand Up @@ -114,7 +114,7 @@ struct dev_dfu_mode_descriptor dfu_mode_desc = {
.device_descriptor = {
.bLength = sizeof(struct usb_device_descriptor),
.bDescriptorType = USB_DEVICE_DESC,
.bcdUSB = sys_cpu_to_le16(USB_1_1),
.bcdUSB = sys_cpu_to_le16(USB_2_0),
.bDeviceClass = 0,
.bDeviceSubClass = 0,
.bDeviceProtocol = 0,
Expand Down

0 comments on commit f3d1b22

Please sign in to comment.