Skip to content

Missing FillDeviceAttributes in WindowsHidDevice __init__ #20

@akaufman1

Description

@akaufman1

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions