diff --git a/usb_protocol/emitters/descriptors/standard.py b/usb_protocol/emitters/descriptors/standard.py index 52bc2c7..082d7b8 100644 --- a/usb_protocol/emitters/descriptors/standard.py +++ b/usb_protocol/emitters/descriptors/standard.py @@ -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)