tocoteron / joycon-python

driver for Joy-Con (Nintendo Switch)
Other
114 stars 27 forks source link

A bug when connect multiple joycon-pair #12

Open fA1sEr opened 4 years ago

fA1sEr commented 4 years ago

https://github.com/tokoroten-lab/joycon-python/blob/051f5fc6ff0c6252c997dd58d7ff35f58ab28c91/pyjoycon/joycon.py#L43

when I connect two pairs of joycon, some joycon read wrong number. Maybe self._joycon_device = self._open(vendor_id, product_id, serial=self.serial) rather than self._joycon_device = self._open(vendor_id, product_id, serial=None)

tocoteron commented 4 years ago

Thanks for your report. We will fix it.

NoctalIvan commented 3 years ago

I just tried editing the lib with the suggested change locally, the bug is still here I'm afraid.

When trying to connect multiple joycon (same vendor_id, product_id but different serial), we get a OSError: open failed (MacOs Catalina)