Remove UsbCommandId_ReadMergeSensor now that it can be queried via UsbCommandId_GetKeyboardState.

This commit is contained in:
László Monda
2017-11-05 01:21:23 +01:00
parent e907e65751
commit d547b9b324
2 changed files with 1 additions and 11 deletions

View File

@@ -54,12 +54,6 @@ void setTestLed(void)
UhkModuleStates[UhkModuleDriverId_LeftKeyboardHalf].sourceVars.isTestLedOn = ledState;
}
// To be removed. Now it's already part of getKeyboardState()
void readMergeSensor(void)
{
SetUsbResponseByte(MERGE_SENSOR_IS_MERGED);
}
void setLedPwm(void)
{
uint8_t brightnessPercent = GenericHidInBuffer[1];
@@ -90,9 +84,6 @@ void UsbProtocolHandler(void)
break;
case UsbCommandId_WriteLedDriver:
break;
case UsbCommandId_ReadMergeSensor:
readMergeSensor();
break;
case UsbCommandId_WriteUserConfiguration:
UsbCommand_WriteConfig(false);
break;

View File

@@ -12,12 +12,11 @@
UsbCommandId_Reenumerate = 1,
UsbCommandId_SetTestLed = 2,
UsbCommandId_WriteLedDriver = 3,
UsbCommandId_ReadMergeSensor = 7,
UsbCommandId_WriteUserConfiguration = 8,
UsbCommandId_ApplyConfig = 9,
UsbCommandId_SetLedPwm = 10,
UsbCommandId_GetAdcValue = 11,
UsbCommandId_LaunchEepromTransferLegacy = 12,
UsbCommandId_LaunchEepromTransferLegacy = 12,
UsbCommandId_ReadHardwareConfiguration = 13,
UsbCommandId_WriteHardwareConfiguration = 14,
UsbCommandId_ReadUserConfiguration = 15,