fix the damn bug within 10 line of code in keyboard_app.c

This commit is contained in:
hathach
2013-03-29 00:20:27 +07:00
parent d95c6cf2e0
commit e658e67ebe
4 changed files with 22 additions and 16 deletions

View File

@@ -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: