Skip to content
This repository was archived by the owner on Apr 29, 2026. It is now read-only.
This repository was archived by the owner on Apr 29, 2026. It is now read-only.

Missing FillDeviceAttributes in WindowsHidDevice __init__ #20

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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