Browse Source

Minimal change to allow support of HID descriptors

hid
Dave Marples 3 years ago
committed by John-Mark Gurney
parent
commit
e7f740afe3
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      usb_protocol/emitters/descriptors/standard.py

+ 1
- 3
usb_protocol/emitters/descriptors/standard.py View File

@@ -223,7 +223,7 @@ class DeviceDescriptorCollection:
descriptor = descriptor.emit() descriptor = descriptor.emit()


# Figure out the identifier (type + index) for this descriptor... # Figure out the identifier (type + index) for this descriptor...
if(descriptor_type is None):
if (descriptor_type is None):
descriptor_type = descriptor[1] descriptor_type = descriptor[1]
identifier = descriptor_type, index identifier = descriptor_type, index


@@ -569,5 +569,3 @@ class EmitterTests(unittest.TestCase):


if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.main()



Loading…
Cancel
Save