next_usb: Change LEDs usage for CapsLock status
This commit is contained in:
parent
4fd703e995
commit
c1f36042b4
2 changed files with 8 additions and 1 deletions
|
@ -47,9 +47,14 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
#include "stdint.h"
|
||||
#include "led.h"
|
||||
#include "next_kbd.h"
|
||||
|
||||
|
||||
void led_set(uint8_t usb_led)
|
||||
{
|
||||
|
||||
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
|
||||
next_kbd_set_leds(true, true);
|
||||
} else {
|
||||
next_kbd_set_leds(false, false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue