diff options
| author | hathach <[email protected]> | 2013-03-27 15:42:45 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-03-27 15:42:45 +0700 |
| commit | d95c6cf2e016257aaa74e372fca350ce96f6a90b (patch) | |
| tree | 4ee958222bc33e6bff921e2717c7764591c1145c | |
| parent | 7b5d9edc5af88422b26116a56032091e96714495 (diff) | |
quick fix for a bug in keyboard app.
still have unplug/plug event after receiving report from keyboard devices
| -rw-r--r-- | demos/host/keyboard_app.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/host/keyboard_app.c b/demos/host/keyboard_app.c index a3a76cc87..9bab4c07d 100644 --- a/demos/host/keyboard_app.c +++ b/demos/host/keyboard_app.c @@ -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: |
