|
|
@@ -177,14 +177,14 @@ class DeviceDescriptorCollection: |
|
|
|
return index |
|
|
|
|
|
|
|
|
|
|
|
def add_descriptor(self, descriptor, descriptor_type=None, index=0): |
|
|
|
def add_descriptor(self, descriptor, index=0, descriptor_type=None): |
|
|
|
""" Adds a descriptor to our collection. |
|
|
|
|
|
|
|
Parameters: |
|
|
|
descriptor -- The descriptor to be added. |
|
|
|
index -- The index of the relevant descriptor. Defaults to 0. |
|
|
|
descriptor_type -- The type of the descriptor to be added. If `None`, |
|
|
|
this is automatically derived from the descriptor contents. |
|
|
|
index -- The index of the relevant descriptor. Defaults to 0. |
|
|
|
""" |
|
|
|
|
|
|
|
# If this is an emitter rather than a descriptor itself, convert it. |
|
|
|