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

Possible solution for updating battery. #8

Closed
chestwood96 opened this issue Jan 9, 2020 · 0 comments
Closed

Possible solution for updating battery. #8

chestwood96 opened this issue Jan 9, 2020 · 0 comments

Comments

@chestwood96
Copy link

First of all thanks for making this.

I think I may have found a solution for updating the battery percentage.

Adding a call to this->hid->setBatteryLevel(level); in the setBatteryLevel of the BleKeyboard class makes the updating work for me.

However setting the battery level before "begin" causes an exception, so I am not sure if this is a viable solution. Maybe add a dedicated notify function or something?

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

No branches or pull requests

2 participants