summaryrefslogtreecommitdiffstats
path: root/common/command.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-03-27 07:23:57 +0100
committertmk <nobody@nowhere>2013-03-27 07:23:57 +0100
commit969cc4f812e3f86213f97adf340e3c7160fc639e (patch)
treead3719c0dd8cce043c235fd2d7e30c8bcd65f7af /common/command.c
parent1f19176867b1b1f760c0ec41cd78fbb6832d29ad (diff)
parentac509aa079bb090017886b5d7e32240ef16a1196 (diff)
downloadqmk_firmware-969cc4f812e3f86213f97adf340e3c7160fc639e.tar.gz
qmk_firmware-969cc4f812e3f86213f97adf340e3c7160fc639e.tar.xz
Merge branch 'suspend_fix'
Diffstat (limited to 'common/command.c')
-rw-r--r--common/command.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/command.c b/common/command.c
index cb98e1d5f..b29333883 100644
--- a/common/command.c
+++ b/common/command.c
@@ -28,6 +28,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "bootloader.h"
#include "layer_switch.h"
#include "eeconfig.h"
+#include "sleep_led.h"
+#include "led.h"
#include "command.h"
#ifdef MOUSEKEY_ENABLE
@@ -152,6 +154,12 @@ static bool command_common(uint8_t code)
{
static host_driver_t *host_driver = 0;
switch (code) {
+ case KC_Z:
+ // test breathing sleep LED
+ print("Sleep LED test\n");
+ sleep_led_toggle();
+ led_set(host_keyboard_leds());
+ break;
#ifdef BOOTMAGIC_ENABLE
case KC_E:
print("eeprom config\n");