mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-28 16:20:26 +00:00
quick fix for a bug in keyboard app.
still have unplug/plug event after receiving report from keyboard devices
This commit is contained in:
parent
7b5d9edc5a
commit
d95c6cf2e0
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user