diff options
| author | Mathias Andersson <wraul@dbox.se> | 2013-05-20 21:06:08 +0200 |
|---|---|---|
| committer | Mathias Andersson <wraul@dbox.se> | 2013-05-27 18:36:00 +0200 |
| commit | ddf1759dbebda91bcc550191cf779292da5653fc (patch) | |
| tree | 93a69a59cdaed98dc80d5362e3f2ad4c48a23016 | |
| parent | 862a006190f2ed568d68e22a25b878a3d6368bc0 (diff) | |
| download | qmk_firmware-ddf1759dbebda91bcc550191cf779292da5653fc.tar.gz qmk_firmware-ddf1759dbebda91bcc550191cf779292da5653fc.zip | |
Fixes to sleep LED.
Add help text.
Add missing SLEEP_LED_ENABLE checks.
| -rw-r--r-- | common/command.c | 5 | ||||
| -rw-r--r-- | protocol/pjrc/usb.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/common/command.c b/common/command.c index b79257947..74b7c5ebc 100644 --- a/common/command.c +++ b/common/command.c | |||
| @@ -106,6 +106,9 @@ static void command_common_help(void) | |||
| 106 | print("x: toggle matrix debug\n"); | 106 | print("x: toggle matrix debug\n"); |
| 107 | print("k: toggle keyboard debug\n"); | 107 | print("k: toggle keyboard debug\n"); |
| 108 | print("m: toggle mouse debug\n"); | 108 | print("m: toggle mouse debug\n"); |
| 109 | #ifdef SLEEP_LED_ENABLE | ||
| 110 | print("z: toggle sleep LED test\n"); | ||
| 111 | #endif | ||
| 109 | print("v: print device version & info\n"); | 112 | print("v: print device version & info\n"); |
| 110 | print("t: print timer count\n"); | 113 | print("t: print timer count\n"); |
| 111 | print("s: print status\n"); | 114 | print("s: print status\n"); |
| @@ -153,12 +156,14 @@ static bool command_common(uint8_t code) | |||
| 153 | { | 156 | { |
| 154 | static host_driver_t *host_driver = 0; | 157 | static host_driver_t *host_driver = 0; |
| 155 | switch (code) { | 158 | switch (code) { |
| 159 | #ifdef SLEEP_LED_ENABLE | ||
| 156 | case KC_Z: | 160 | case KC_Z: |
| 157 | // test breathing sleep LED | 161 | // test breathing sleep LED |
| 158 | print("Sleep LED test\n"); | 162 | print("Sleep LED test\n"); |
| 159 | sleep_led_toggle(); | 163 | sleep_led_toggle(); |
| 160 | led_set(host_keyboard_leds()); | 164 | led_set(host_keyboard_leds()); |
| 161 | break; | 165 | break; |
| 166 | #endif | ||
| 162 | #ifdef BOOTMAGIC_ENABLE | 167 | #ifdef BOOTMAGIC_ENABLE |
| 163 | case KC_E: | 168 | case KC_E: |
| 164 | print("eeconfig:\n"); | 169 | print("eeconfig:\n"); |
diff --git a/protocol/pjrc/usb.c b/protocol/pjrc/usb.c index 0a5436deb..902f9f7f7 100644 --- a/protocol/pjrc/usb.c +++ b/protocol/pjrc/usb.c | |||
| @@ -34,7 +34,9 @@ | |||
| 34 | #include "led.h" | 34 | #include "led.h" |
| 35 | #include "print.h" | 35 | #include "print.h" |
| 36 | #include "util.h" | 36 | #include "util.h" |
| 37 | #ifdef SLEEP_LED_ENABLE | ||
| 37 | #include "sleep_led.h" | 38 | #include "sleep_led.h" |
| 39 | #endif | ||
| 38 | #include "suspend.h" | 40 | #include "suspend.h" |
| 39 | 41 | ||
| 40 | 42 | ||
