summaryrefslogtreecommitdiff
path: root/keyboard/hhkb_rn42/rn42/rn42_task.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-09-22 14:20:49 +0900
committertmk <nobody@nowhere>2014-09-22 14:20:49 +0900
commitbfd2d969b48eb2f381137383c6262b60e03cf5b1 (patch)
treeeac3531c090ec37fe58e416157642927b3c30aa9 /keyboard/hhkb_rn42/rn42/rn42_task.c
parent2015027da325e9f9b602af1f36ceeeebbcd6c78d (diff)
downloadqmk_firmware-bfd2d969b48eb2f381137383c6262b60e03cf5b1.tar.gz
qmk_firmware-bfd2d969b48eb2f381137383c6262b60e03cf5b1.zip
Add keyboard LED control via Bluetooth
Diffstat (limited to 'keyboard/hhkb_rn42/rn42/rn42_task.c')
-rw-r--r--keyboard/hhkb_rn42/rn42/rn42_task.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboard/hhkb_rn42/rn42/rn42_task.c b/keyboard/hhkb_rn42/rn42/rn42_task.c
index 31a415cedf..c3359ed506 100644
--- a/keyboard/hhkb_rn42/rn42/rn42_task.c
+++ b/keyboard/hhkb_rn42/rn42/rn42_task.c
@@ -7,6 +7,7 @@
#include "lufa.h"
#include "rn42_task.h"
#include "print.h"
+#include "debug.h"
#include "timer.h"
#include "command.h"
#include "battery.h"
@@ -45,7 +46,6 @@ void rn42_task(void)
// LED Out report: 0xFE, 0x02, 0x01, <leds>
// To get the report over UART set bit3 with SH, command.
static enum {LED_INIT, LED_FE, LED_02, LED_01} state = LED_INIT;
- xprintf("%02X\n", c);
switch (state) {
case LED_INIT:
if (c == 0xFE) state = LED_FE;
@@ -60,8 +60,8 @@ void rn42_task(void)
else state = LED_INIT;
break;
case LED_01:
- // TODO: move to rn42.c and make accessible with keyboard_leds()
- xprintf("LED status: %02X\n", c);
+ dprintf("LED status: %02X\n", c);
+ rn42_set_leds(c);
state = LED_INIT;
break;
default: