summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rwxr-xr-x[-rw-r--r--]command.c6
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