summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMathias Andersson <wraul@dbox.se>2013-05-20 21:06:08 +0200
committerMathias Andersson <wraul@dbox.se>2013-05-27 18:36:00 +0200
commitddf1759dbebda91bcc550191cf779292da5653fc (patch)
tree93a69a59cdaed98dc80d5362e3f2ad4c48a23016 /common
parent862a006190f2ed568d68e22a25b878a3d6368bc0 (diff)
downloadqmk_firmware-ddf1759dbebda91bcc550191cf779292da5653fc.tar.gz
qmk_firmware-ddf1759dbebda91bcc550191cf779292da5653fc.zip
Fixes to sleep LED.
Add help text. Add missing SLEEP_LED_ENABLE checks.
Diffstat (limited to 'common')
-rw-r--r--common/command.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/command.c b/common/command.c
index b792579475..74b7c5ebcf 100644
--- a/common/command.c
+++ b/common/command.c
@@ -106,6 +106,9 @@ static void command_common_help(void)
print("x: toggle matrix debug\n");
print("k: toggle keyboard debug\n");
print("m: toggle mouse debug\n");
+#ifdef SLEEP_LED_ENABLE
+ print("z: toggle sleep LED test\n");
+#endif
print("v: print device version & info\n");
print("t: print timer count\n");
print("s: print status\n");
@@ -153,12 +156,14 @@ static bool command_common(uint8_t code)
{
static host_driver_t *host_driver = 0;
switch (code) {
+#ifdef SLEEP_LED_ENABLE
case KC_Z:
// test breathing sleep LED
print("Sleep LED test\n");
sleep_led_toggle();
led_set(host_keyboard_leds());
break;
+#endif
#ifdef BOOTMAGIC_ENABLE
case KC_E:
print("eeconfig:\n");