Robert Hartung

Results 21 comments of Robert Hartung

@ijager You can add my repo as an upstream in the meantime and cherry pick the commit!

I just uploaded a bugfix for user_data in the hotplug handle

Fixed another bug where userdata was pointing to the wrong object, if a dict was passed directly to the register function.

I will try to rebase and test tomorrow! I will force push to get rid of the merge commit as well.

@jonasmalacofilho @raetiacorvus You code is just missing a line of code, it should be: ``` import usb.hotplug def on_plug(dev, event, user_data): print(dev, event, user_data) return 0 handle = usb.hotplug.register_callback(0x01 |...

> Quick update: I started to look over this pull request, but there are some things I still don't quite understand (so no review yet). > > I'm also thinking...

FYI: I am working on this.

@walac the hotplug callback returns a _libusb_device_. Where and to which type should it be converted? Should my hotplug implementation to the conversion to `Device(_Device(dev, backend))`?