mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-31 07:20:23 +00:00
clear keyboard & mouse report
This commit is contained in:
parent
1821681816
commit
91d64ebbb3
@ -112,6 +112,8 @@ OSAL_TASK_DECLARE( keyboard_app_task )
|
|||||||
printf("%c", keycode_to_ascii(kbd_report.keycode[i]));
|
printf("%c", keycode_to_ascii(kbd_report.keycode[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memclr_(&kbd_report, sizeof(tusb_keyboard_report_t) );
|
||||||
|
|
||||||
OSAL_TASK_LOOP_END
|
OSAL_TASK_LOOP_END
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,5 +114,7 @@ OSAL_TASK_DECLARE( mouse_app_task )
|
|||||||
mouse_report.x, mouse_report.y);
|
mouse_report.x, mouse_report.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memclr_(&mouse_report, sizeof(tusb_mouse_report_t) );
|
||||||
|
|
||||||
OSAL_TASK_LOOP_END
|
OSAL_TASK_LOOP_END
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user