diff options
author | tmk <nobody@nowhere> | 2011-07-01 01:10:55 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2011-07-01 01:10:55 +0900 |
commit | 1bda8a8c69e7b1e5e62233d9f5a63d0dca0ef4fb (patch) | |
tree | 26ce61a480fd4dced76f73fcc6824c67e5e083a8 /command.c | |
parent | 6d45e05ede8ea1a96df9a04d58a7d7ede51afd9b (diff) | |
download | qmk_firmware-1bda8a8c69e7b1e5e62233d9f5a63d0dca0ef4fb.tar.gz qmk_firmware-1bda8a8c69e7b1e5e62233d9f5a63d0dca0ef4fb.zip |
Add special keycodes for media control. Fix power down command.
Diffstat (limited to 'command.c')
-rwxr-xr-x[-rw-r--r--] | command.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/command.c b/command.c index ca149dbd08..2d065ed281 100644..100755 --- a/command.c +++ b/command.c @@ -122,14 +122,20 @@ uint8_t command_proc(void) #endif #ifdef USB_EXTRA_ENABLE case KB_ESC: + host_clear_keyboard_report(); + host_send_keyboard_report(); #ifdef HOST_PJRC if (suspend && remote_wakeup) { usb_remote_wakeup(); } else { host_system_send(SYSTEM_POWER_DOWN); + host_system_send(0); + _delay_ms(500); } #else host_system_send(SYSTEM_POWER_DOWN); + host_system_send(0); + _delay_ms(500); #endif break; #endif |