Skip to content

guessing device types with Multiple spacemice is not handled correctly #37

@peter-mitrano-ar

Description

@peter-mitrano-ar

The problem

If you plug in, for example, one Spacemouse Wireless, and one Spacemouse Compact, and try to open them using pyspacemouse specifying only the path parameter and not the device parameter, the spacemouse compact will incorrectly be loaded as a Spacemouse Wireless and not will not give the right output.

Why

device = all_devices[0]

This line just guesses the device type to be the first one. So if you are loading the second device, the type will be wrong.

I hope to make a PR for this, but no promises. But I at least wanted to report this so others can know about this issue. The simple fix is to always pass device if you pass path. But I think the code should be able to automatically determine the device if you pass the path, so I would still consider this a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions