Skip to content
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

Solves battery level shows 630% when mouse is off #187 #212

Conversation

LennardKittner
Copy link
Contributor

I have verified that the bug also occurs with an Aerox 5 Wireless. When the device is switched off, the value of data[1] becomes 0xFF. To address this, I modified the battery function to return None if the battery level is outside the range of 0 to 100. Additionally, I updated the error message and the documentation comment. I also fixed a typo in the original comment.

@flozz flozz merged commit 5d81d7d into flozz:master Jun 20, 2023
@flozz
Copy link
Owner

flozz commented Jun 20, 2023

Thank you for the fix, it will be released with the next version :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants