Skip to content

Commit 5d8bdd2

Browse files
authored
Merge pull request #4517 from dhalbert/no-remote-wakeup
Turn off remote wakeup in USB configuration descriptor
2 parents 0582d63 + c9f2591 commit 5d8bdd2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/gen_usb_descriptor.py

+5
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,11 @@ def make_cdc_iad(cdc_comm_interface, name):
612612
standard.ConfigurationDescriptor.bLength + sum([len(bytes(x)) for x in descriptor_list])
613613
),
614614
bNumInterfaces=len(interfaces),
615+
# bus powered (bit 6), remote wakeup (bit 5),
616+
# bit 7 is always 1 and 0-4 are always 0
617+
# Turn off remote wakeup until we handle it in CircuitPython.
618+
bmAttributes=0x80,
619+
615620
)
616621
descriptor_list.insert(0, configuration)
617622

0 commit comments

Comments
 (0)