Skip to content

Commit

Permalink
Turn off remote wakeup in USB configuration descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
dhalbert committed Mar 31, 2021
1 parent 7471e97 commit 9cc02fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ports/raspberrypi/sdk
5 changes: 5 additions & 0 deletions tools/gen_usb_descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,11 @@ def make_cdc_iad(cdc_comm_interface, name):
standard.ConfigurationDescriptor.bLength + sum([len(bytes(x)) for x in descriptor_list])
),
bNumInterfaces=len(interfaces),
# bus powered (bit 6), remote wakeup (bit 5),
# bit 7 is always 1 and 0-4 are always 0
# Turn off remote wakeup until we handle it in CircuitPython.
bmAttributes=0x80,

)
descriptor_list.insert(0, configuration)

Expand Down

0 comments on commit 9cc02fe

Please sign in to comment.