Browse Source

Change descriptor_type default check

hid
Josh Koike 4 years ago
parent
commit
4a660f83ce
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      usb_protocol/emitters/descriptors/standard.py

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

@@ -192,7 +192,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 == None):
if(descriptor_type is None):
descriptor_type = descriptor[1] descriptor_type = descriptor[1]
identifier = descriptor_type, index identifier = descriptor_type, index




Loading…
Cancel
Save