summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-05-21 10:28:57 +0900
committertmk <nobody@nowhere>2011-05-21 10:28:57 +0900
commit74f7e19863ced21bf5d27c1fb1207f79f2195e24 (patch)
treec834e941748d6f4629b546bfce21fb9523d5e784 /command.c
parent068c31a7ba9fc6aea33f69c0edb30ad195c320ec (diff)
added USB_EXTRA feature to HHKB/V-USB
Diffstat (limited to 'command.c')
-rwxr-xr-xcommand.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/command.c b/command.c
index cd51b79cb3..ca149dbd08 100755
--- a/command.c
+++ b/command.c
@@ -122,11 +122,15 @@ uint8_t command_proc(void)
#endif
#ifdef USB_EXTRA_ENABLE
case KB_ESC:
+#ifdef HOST_PJRC
if (suspend && remote_wakeup) {
usb_remote_wakeup();
} else {
- usb_extra_system_send(SYSTEM_POWER_DOWN);
+ host_system_send(SYSTEM_POWER_DOWN);
}
+#else
+ host_system_send(SYSTEM_POWER_DOWN);
+#endif
break;
#endif
case KB_BSPC: