You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 29, 2026. It is now read-only.
When running hidtransport.DiscoverLocalHIDU2FDevices() on Windows, HID devices returned seem to be missing HID attributes such as PID and VID. Tracing through the code it appears that FillDeviceAttributes needs to added to WindowsHidDevice init function.
class WindowsHidDevice(base.HidDevice): ... def __init__(self, path): """See base class.""" base.HidDevice.__init__(self, path) self.dev = OpenDevice(path) self.desc = base.DeviceDescriptor() FillDeviceAttributes(self.dev, self.desc) #added function call to copy attributes FillDeviceCapabilities(self.dev, self.desc)
When running hidtransport.DiscoverLocalHIDU2FDevices() on Windows, HID devices returned seem to be missing HID attributes such as PID and VID. Tracing through the code it appears that FillDeviceAttributes needs to added to WindowsHidDevice init function.
class WindowsHidDevice(base.HidDevice): ... def __init__(self, path): """See base class.""" base.HidDevice.__init__(self, path) self.dev = OpenDevice(path) self.desc = base.DeviceDescriptor() FillDeviceAttributes(self.dev, self.desc) #added function call to copy attributes FillDeviceCapabilities(self.dev, self.desc)