summaryrefslogtreecommitdiffstats
path: root/converter/next_usb/led.c
diff options
context:
space:
mode:
authortmk <hasu@tmk-kbd.com>2015-09-20 03:43:12 +0200
committertmk <hasu@tmk-kbd.com>2015-09-20 03:43:12 +0200
commitc1f36042b4a09bf2357406b83d5c97a652d56bdb (patch)
tree626aefa0ce490dabe6f36d681430c3d97c1a2777 /converter/next_usb/led.c
parent4fd703e9955356971d9610e05b734db860856382 (diff)
downloadqmk_firmware-c1f36042b4a09bf2357406b83d5c97a652d56bdb.tar.gz
qmk_firmware-c1f36042b4a09bf2357406b83d5c97a652d56bdb.tar.xz
next_usb: Change LEDs usage for CapsLock status
Diffstat (limited to 'converter/next_usb/led.c')
-rw-r--r--converter/next_usb/led.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/converter/next_usb/led.c b/converter/next_usb/led.c
index 24db15e16..2bd0ef6dd 100644
--- a/converter/next_usb/led.c
+++ b/converter/next_usb/led.c
@@ -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);
+ }
}