A scancode always occupies 1 byte so removing the sizeof()

This commit is contained in:
László Monda
2017-01-02 18:16:33 +01:00
parent 844a3609fc
commit 714a6a9b1a

View File

@@ -115,7 +115,7 @@ void UsbKeyboadTask(){
KeyMatrix_Init(&keyMatrix);
KeyMatrix_Scan(&keyMatrix);
bzero(&UsbKeyboardReport[newLayout].scancodes, USB_KEYBOARD_MAX_KEYS*sizeof(UsbKeyboardReport[newLayout].scancodes[0]));
bzero(&UsbKeyboardReport[newLayout].scancodes, USB_KEYBOARD_MAX_KEYS);
readLeftKeys(leftKeyStates);