-
-
Notifications
You must be signed in to change notification settings - Fork 24
Description
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
PySpaceMouse/pyspacemouse/pyspacemouse.py
Line 910 in 9f403df
| 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.