summaryrefslogtreecommitdiff
path: root/pjrc/usb.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-02-13 00:15:51 +0900
committertmk <nobody@nowhere>2011-02-22 03:09:05 +0900
commit9a938eecbd2b70c970992583b5c16da717d8e254 (patch)
tree22ac37491f88aa60d917a18696c93f61a429d43c /pjrc/usb.c
parent2b8cd88ab142068eed0a3f230a3de79deb567536 (diff)
host interface for pjrc
Diffstat (limited to 'pjrc/usb.c')
-rwxr-xr-xpjrc/usb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pjrc/usb.c b/pjrc/usb.c
index 845b00bea7..9fd30dee3c 100755
--- a/pjrc/usb.c
+++ b/pjrc/usb.c
@@ -687,10 +687,10 @@ ISR(USB_GEN_vect)
usb_keyboard_idle_count++;
if (usb_keyboard_idle_count == usb_keyboard_idle_config) {
usb_keyboard_idle_count = 0;
- UEDATX = usb_keyboard_mods;
+ UEDATX = keyboard_report->mods;
UEDATX = 0;
for (i=0; i<6; i++) {
- UEDATX = usb_keyboard_keys[i];
+ UEDATX = keyboard_report->keys[i];
}
UEINTX = 0x3A;
}
@@ -873,10 +873,10 @@ ISR(USB_COM_vect)
if (bmRequestType == 0xA1) {
if (bRequest == HID_GET_REPORT) {
usb_wait_in_ready();
- UEDATX = usb_keyboard_mods;
+ UEDATX = keyboard_report->mods;
UEDATX = 0;
for (i=0; i<6; i++) {
- UEDATX = usb_keyboard_keys[i];
+ UEDATX = keyboard_report->keys[i];
}
usb_send_in();
return;