Turn off remote wakeup in USB configuration descriptor

This commit is contained in:
Dan Halbert 2021-03-31 09:48:33 -04:00
parent 7471e978bb
commit c9f2591d7c

View File

@ -612,6 +612,11 @@ configuration = standard.ConfigurationDescriptor(
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)