Merge pull request #4517 from dhalbert/no-remote-wakeup

Turn off remote wakeup in USB configuration descriptor
This commit is contained in:
Scott Shawcroft 2021-03-31 08:55:50 -07:00 committed by GitHub
commit 5d8bdd20b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

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)