Skip to content

Commit 4d5ccb3

Browse files
author
rogerclarkmelbourne
committed
Fixed issue with u8_usbConfigDescriptorDFU. I'm not sure how it could have been working before, after I added the new ALT ID. And updates maple_mini_boot20.bin
1 parent e163e3c commit 4d5ccb3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

0 Bytes
Binary file not shown.

usb_bootloader/STM32F1/usb_descriptor.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ ONE_DESCRIPTOR usbFunctionalDescriptor = {
8080
0x09
8181
};
8282

83-
84-
u8 u8_usbConfigDescriptorDFU[45] = {
83+
#define u8_usbConfigDescriptorDFU_LENGTH 45
84+
u8 u8_usbConfigDescriptorDFU[u8_usbConfigDescriptorDFU_LENGTH] = {
8585
0x09, /* bLength: Configuation Descriptor size */
8686
0x02, /* bDescriptorType: Configuration */
87-
0x24, /* wTotalLength: Bytes returned */
87+
u8_usbConfigDescriptorDFU_LENGTH, /* wTotalLength: Bytes returned */
8888
0x00,
8989
0x01, /* bNumInterfaces: 1 interface */
9090
0x01, /* bConfigurationValue: */
@@ -149,7 +149,7 @@ u8 u8_usbConfigDescriptorDFU[45] = {
149149

150150
ONE_DESCRIPTOR usbConfigDescriptorDFU = {
151151
u8_usbConfigDescriptorDFU,
152-
0x24
152+
u8_usbConfigDescriptorDFU_LENGTH
153153
};
154154

155155
u8 u8_usbStringLangId[0x04] = {

0 commit comments

Comments
 (0)