diff --git a/right/src/usb_protocol_handler.c b/right/src/usb_protocol_handler.c index 517907c..3d29f39 100644 --- a/right/src/usb_protocol_handler.c +++ b/right/src/usb_protocol_handler.c @@ -155,6 +155,11 @@ void writeConfiguration(bool isHardware) memcpy(buffer+offset, GenericHidInBuffer+1+1+2, length); } +void getKeyboardState(void) +{ + GenericHidOutBuffer[1] = IsEepromBusy; +} + // The main protocol handler function void usbProtocolHandler(void) @@ -200,6 +205,9 @@ void usbProtocolHandler(void) case UsbCommand_ReadUserConfiguration: readConfiguration(false); break; + case UsbCommand_GetKeyboardState: + getKeyboardState(); + break; default: break; } diff --git a/right/src/usb_protocol_handler.h b/right/src/usb_protocol_handler.h index 577945c..a951129 100644 --- a/right/src/usb_protocol_handler.h +++ b/right/src/usb_protocol_handler.h @@ -21,6 +21,7 @@ UsbCommand_ReadHardwareConfiguration = 13, UsbCommand_WriteHardwareConfiguration = 14, UsbCommand_ReadUserConfiguration = 15, + UsbCommand_GetKeyboardState = 16, } usb_command_t; typedef enum {