Reset the USB keyboard report with a single bzero() call.

This commit is contained in:
László Monda
2017-01-10 01:07:51 +01:00
parent 736d4a621a
commit a0c7f407e8
+1 -3
View File
@@ -55,9 +55,7 @@ void SwitchActiveUsbKeyboardReport()
void ResetActiveUsbKeyboardReport()
{
ActiveUsbKeyboardReport->modifiers = 0;
ActiveUsbKeyboardReport->reserved = 0;
bzero(ActiveUsbKeyboardReport->scancodes, USB_KEYBOARD_MAX_KEYS);
bzero(ActiveUsbKeyboardReport, USB_KEYBOARD_REPORT_LENGTH);
}
void UsbKeyboadTask()