diff options
| author | Dan Halbert <halbert@halwitz.org> | 2021-03-31 09:48:33 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2021-03-31 10:12:16 -0400 |
| commit | c9f2591d7cf79e82febc7fa59d01e26e8bfec630 (patch) | |
| tree | eac466306b84cee01014f92f01c4d19a048426a8 /tools | |
| parent | 7471e978bb8470ee8984afe39243dbfaeaef916a (diff) | |
Turn off remote wakeup in USB configuration descriptor
Diffstat (limited to 'tools')
| -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) |
