-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows requires byte prepended to data #417
Comments
@aponoran I created a new issue to track the Windows extra byte problem. As I mentioned in #416, we need to preserve the |
I added a check to the method `busylight.lights.light.Light.update` that prepends a zero byte to the bytes object that will be sent to a device if the current platform is Windows. This is necessary because the Windows HID API requires a report ID to be sent with the data and the underlying hidapi library doesn't seem to handle this for us on Windows but does handle it on Linux and macOS.
I tested on Windows with the above commit and everything works fine! Used a Luxafor ORB and a Kuando Omega. |
This fix is now available in version 0.33.0. Again, thanks for your help! |
Also, as a separate note, I had to deploy on Windows and to make it work I had to send an additional 0 to the devices. Then everything was working; without it the lights were ignoring any commands. I have no idea why it works with the 0.
And I had 2 different devices, a Luxafor ORB and a Kuando, and both behaved the same.
Originally posted by @aponoran in #416 (comment)
The text was updated successfully, but these errors were encountered: