diff options
| author | hathach <[email protected]> | 2013-04-15 18:04:26 +0800 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-04-15 18:04:26 +0800 |
| commit | 91d64ebbb38b079a4ce39263c2affb1ce6b44b59 (patch) | |
| tree | 4d7f39eacb758510f04ee3461acd56fc36a01e73 | |
| parent | 1821681816511f8476b957dcc1d627ede93aaa50 (diff) | |
clear keyboard & mouse report
| -rw-r--r-- | demos/host/src/keyboard_app.c | 2 | ||||
| -rw-r--r-- | demos/host/src/mouse_app.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/demos/host/src/keyboard_app.c b/demos/host/src/keyboard_app.c index 3b4e0beb4..1a58daa05 100644 --- a/demos/host/src/keyboard_app.c +++ b/demos/host/src/keyboard_app.c @@ -112,6 +112,8 @@ OSAL_TASK_DECLARE( keyboard_app_task ) printf("%c", keycode_to_ascii(kbd_report.keycode[i])); } + memclr_(&kbd_report, sizeof(tusb_keyboard_report_t) ); + OSAL_TASK_LOOP_END } diff --git a/demos/host/src/mouse_app.c b/demos/host/src/mouse_app.c index d1c37e245..89dd7d6b5 100644 --- a/demos/host/src/mouse_app.c +++ b/demos/host/src/mouse_app.c @@ -114,5 +114,7 @@ OSAL_TASK_DECLARE( mouse_app_task ) mouse_report.x, mouse_report.y); } + memclr_(&mouse_report, sizeof(tusb_mouse_report_t) ); + OSAL_TASK_LOOP_END } |
