diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2021-03-31 08:55:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-31 08:55:50 -0700 |
| commit | 5d8bdd20b42b200454be86bacfa80c57c1ac293b (patch) | |
| tree | 32229ac1cde1a860eb7ae06833616f07ec72d377 | |
| parent | 0582d639c112b4f33753c08f42bc6a316545579c (diff) | |
| parent | c9f2591d7cf79e82febc7fa59d01e26e8bfec630 (diff) | |
Merge pull request #4517 from dhalbert/no-remote-wakeup
Turn off remote wakeup in USB configuration descriptor
| -rw-r--r-- | tools/gen_usb_descriptor.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/gen_usb_descriptor.py b/tools/gen_usb_descriptor.py index 89bb8a817..9c4efaca3 100644 --- a/tools/gen_usb_descriptor.py +++ b/tools/gen_usb_descriptor.py @@ -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) |
