From ab7e25692ad64b8da0f3eca81b48783a994b3c6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Thu, 23 Nov 2017 04:18:37 +0100 Subject: [PATCH] Use hex numbers as the values of UsbCommandId_* --- right/src/usb_protocol_handler.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/right/src/usb_protocol_handler.h b/right/src/usb_protocol_handler.h index dc54bf7..7fa573f 100644 --- a/right/src/usb_protocol_handler.h +++ b/right/src/usb_protocol_handler.h @@ -13,21 +13,21 @@ // Typedefs: typedef enum { - UsbCommandId_GetProperty = 0, - UsbCommandId_Reenumerate = 1, - UsbCommandId_SetTestLed = 2, - UsbCommandId_WriteUserConfig = 8, - UsbCommandId_ApplyConfig = 9, - UsbCommandId_SetLedPwmBrightness = 10, - UsbCommandId_GetAdcValue = 11, - UsbCommandId_LaunchEepromTransferLegacy = 12, - UsbCommandId_ReadHardwareConfig = 13, - UsbCommandId_WriteHardwareConfig = 14, - UsbCommandId_ReadUserConfig = 15, - UsbCommandId_GetKeyboardState = 16, - UsbCommandId_GetDebugBuffer = 17, - UsbCommandId_JumpToModuleBootloader = 18, - UsbCommandId_SendKbootCommandToModule = 19, + UsbCommandId_GetProperty = 0x00, + UsbCommandId_Reenumerate = 0x01, + UsbCommandId_SetTestLed = 0x02, + UsbCommandId_WriteUserConfig = 0x08, + UsbCommandId_ApplyConfig = 0x09, + UsbCommandId_SetLedPwmBrightness = 0x0A, + UsbCommandId_GetAdcValue = 0x0B, + UsbCommandId_LaunchEepromTransferLegacy = 0x0C, + UsbCommandId_ReadHardwareConfig = 0x0D, + UsbCommandId_WriteHardwareConfig = 0x0E, + UsbCommandId_ReadUserConfig = 0x0F, + UsbCommandId_GetKeyboardState = 0x10, + UsbCommandId_GetDebugBuffer = 0x11, + UsbCommandId_JumpToModuleBootloader = 0x12, + UsbCommandId_SendKbootCommandToModule = 0x13, } usb_command_id_t; typedef enum {