From 1bda8a8c69e7b1e5e62233d9f5a63d0dca0ef4fb Mon Sep 17 00:00:00 2001 From: tmk Date: Fri, 1 Jul 2011 01:10:55 +0900 Subject: Add special keycodes for media control. Fix power down command. --- command.c | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100644 => 100755 command.c (limited to 'command.c') diff --git a/command.c b/command.c old mode 100644 new mode 100755 index ca149dbd0..2d065ed28 --- 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 -- cgit v1.2.3-24-g4f1b