-
Notifications
You must be signed in to change notification settings - Fork 789
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
Problem with keyboard and lock keys #160
Comments
Please describe your setup. What development board are you using, keyboard etc. |
Hi there, I happened to notice this issue yesterday - pressing a lock key will turn on the appropriate LED on the keyboard - but another press will not turn it off. Also - multiple LEDs cannot be turned on. If NumLock is pressed the NumLock LED will turn on, if CapsLock is then pressed the NumLock LED will turn off and the CapsLock LED will turn on. In hidboot.h starting at line 166 - it appears that SetReport is clearing kbdLockingKeys.bLeds - here is the original:
My quick and dirty fix was to add a temp variable. I haven't dug further into the code so I'm not sure if there is some reason for kbdLockingKeys.bLeds to be cleared. But with this change the LEDs will toggle properly and multiple LEDs will light.
|
@gorakk thanks. Do you mind sending a pull request? |
#172 should fix this issue. |
I am still having an issue with keyboard lock LEDs inconsistently lighting. The |
Hello,
I've a problem with a Keyboard and USB Host Shield libraries, when I press any lock key (CapsLock, NumLock or ScrollLock) the led came on, but if I press again it does not came off, it only came off when I press any other lock key.
Best regards.
The text was updated successfully, but these errors were encountered: