Browse Source

Merge pull request #16 from miek/descriptor_collection

descriptors: pass descriptor collection to ConfigurationDescriptorEmitter
main
Kate Temkin 3 years ago
committed by GitHub
parent
commit
03200d0a91
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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

@@ -284,7 +284,7 @@ class DeviceDescriptorCollection:
This adds the relevant descriptor, automatically. Note that populating derived
fields such as bNumInterfaces aren't necessary; they'll be populated automatically.
"""
descriptor = ConfigurationDescriptorEmitter()
descriptor = ConfigurationDescriptorEmitter(collection=self)
yield descriptor

self.add_descriptor(descriptor)


Loading…
Cancel
Save