quick fix for a bug in keyboard app.

still have unplug/plug event after receiving report from keyboard devices
This commit is contained in:
hathach 2013-03-27 15:42:45 +07:00
parent 7b5d9edc5a
commit d95c6cf2e0
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ void keyboard_app_task(void)
if ( keyboard_report.keycode[i] != 0 )
printf("%c", keycode_to_ascii(keyboard_report.keycode[i]));
}
memclr_(&keyboard_report, sizeof(tusb_keyboard_report_t)); // TODO use callback to synchronize
break;
case TUSB_INTERFACE_STATUS_BUSY: