Slightly tweak USB command names.

This commit is contained in:
László Monda
2017-11-08 23:14:12 +01:00
parent 98b84bc49c
commit 21c1ded972
2 changed files with 12 additions and 12 deletions

View File

@@ -27,7 +27,7 @@ void UsbProtocolHandler(void)
case UsbCommandId_SetTestLed:
UsbCommand_SetTestLed();
break;
case UsbCommandId_WriteUserConfiguration:
case UsbCommandId_WriteUserConfig:
UsbCommand_WriteConfig(false);
break;
case UsbCommandId_ApplyConfig:
@@ -42,13 +42,13 @@ void UsbProtocolHandler(void)
case UsbCommandId_LaunchEepromTransferLegacy:
UsbCommand_LaunchEepromTransferLegacy();
break;
case UsbCommandId_ReadHardwareConfiguration:
case UsbCommandId_ReadHardwareConfig:
UsbCommand_ReadConfig(true);
break;
case UsbCommandId_WriteHardwareConfiguration:
case UsbCommandId_WriteHardwareConfig:
UsbCommand_WriteConfig(true);
break;
case UsbCommandId_ReadUserConfiguration:
case UsbCommandId_ReadUserConfig:
UsbCommand_ReadConfig(false);
break;
case UsbCommandId_GetKeyboardState:
@@ -57,10 +57,10 @@ void UsbProtocolHandler(void)
case UsbCommandId_GetDebugInfo:
UsbCommand_GetDebugBuffer();
break;
case UsbCommandId_JumpToSlaveBootloader:
case UsbCommandId_JumpToModuleBootloader:
UsbCommand_JumpToSlaveBootloader();
break;
case UsbCommandId_SendKbootCommand:
case UsbCommandId_SendKbootCommandToModule:
UsbCommand_SendKbootCommand();
break;
default:

View File

@@ -24,18 +24,18 @@
UsbCommandId_GetProperty = 0,
UsbCommandId_Reenumerate = 1,
UsbCommandId_SetTestLed = 2,
UsbCommandId_WriteUserConfiguration = 8,
UsbCommandId_WriteUserConfig = 8,
UsbCommandId_ApplyConfig = 9,
UsbCommandId_SetLedPwmBrightness = 10,
UsbCommandId_GetAdcValue = 11,
UsbCommandId_LaunchEepromTransferLegacy = 12,
UsbCommandId_ReadHardwareConfiguration = 13,
UsbCommandId_WriteHardwareConfiguration = 14,
UsbCommandId_ReadUserConfiguration = 15,
UsbCommandId_ReadHardwareConfig = 13,
UsbCommandId_WriteHardwareConfig = 14,
UsbCommandId_ReadUserConfig = 15,
UsbCommandId_GetKeyboardState = 16,
UsbCommandId_GetDebugInfo = 17,
UsbCommandId_JumpToSlaveBootloader = 18,
UsbCommandId_SendKbootCommand = 19,
UsbCommandId_JumpToModuleBootloader = 18,
UsbCommandId_SendKbootCommandToModule = 19,
} usb_command_id_t;
typedef enum {