clear keyboard & mouse report
This commit is contained in:
		| @@ -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 | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -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 | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach