summaryrefslogtreecommitdiff
path: root/demos/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-29 00:20:27 +0700
committerhathach <[email protected]>2013-03-29 00:20:27 +0700
commite658e67ebefb94ee001dc491ea01c607300490b7 (patch)
treebf657aaead73a8b5f03335044315b8b08653e152 /demos/host
parentd95c6cf2e016257aaa74e372fca350ce96f6a90b (diff)
fix the damn bug within 10 line of code in keyboard_app.c
Diffstat (limited to 'demos/host')
-rw-r--r--demos/host/keyboard_app.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/host/keyboard_app.c b/demos/host/keyboard_app.c
index 9bab4c07d..5dee23c31 100644
--- a/demos/host/keyboard_app.c
+++ b/demos/host/keyboard_app.c
@@ -86,6 +86,7 @@ void keyboard_app_task(void)
printf("%c", keycode_to_ascii(keyboard_report.keycode[i]));
}
memclr_(&keyboard_report, sizeof(tusb_keyboard_report_t)); // TODO use callback to synchronize
+ tusbh_hid_keyboard_get_report(dev_addr, 0, (uint8_t*) &keyboard_report);
break;
case TUSB_INTERFACE_STATUS_BUSY: