Skip to content

Commit e1c9e64

Browse files
committed
[bl] fix power failure in usb descriptor
1 parent 0fd8b8b commit e1c9e64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bootloaders/zero/sam_ba_usb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ char cfgDescriptor[] =
5858
0x02, // CbNumInterfaces
5959
0x01, // CbConfigurationValue
6060
0x00, // CiConfiguration
61-
0xC0, // CbmAttributes 0xA0
62-
0x00, // CMaxPower
61+
0xC0, // CbmAttributes Bus powered without remote wakeup: 0xc0, Self powered with remote wakeup: 0xa0
62+
0x32, // CMaxPower, report using 100mA, enough for a bootloader
6363

6464
/* Communication Class Interface Descriptor Requirement */
6565
0x09, // bLength

0 commit comments

Comments
 (0)