From 38245d974957fa712d86daf9cb17d442117508f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Mon, 2 Jan 2017 21:09:11 +0100 Subject: [PATCH] Zero the content of GenericHidOutBuffer before processing protocol commands. --- right/src/usb_protocol_handler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/right/src/usb_protocol_handler.c b/right/src/usb_protocol_handler.c index f43dfc6..a17dd64 100644 --- a/right/src/usb_protocol_handler.c +++ b/right/src/usb_protocol_handler.c @@ -41,6 +41,7 @@ void SetResponseByte(uint8_t response) void UsbProtocolHandler() { + bzero(GenericHidOutBuffer, USB_GENERIC_HID_OUT_BUFFER_LENGTH); uint8_t command = GenericHidInBuffer[0]; switch (command) { case USB_COMMAND_GET_SYSTEM_PROPERTY: