Remove UsbCommandId_ReadMergeSensor now that it can be queried via UsbCommandId_GetKeyboardState.
This commit is contained in:
@@ -54,12 +54,6 @@ void setTestLed(void)
|
|||||||
UhkModuleStates[UhkModuleDriverId_LeftKeyboardHalf].sourceVars.isTestLedOn = ledState;
|
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)
|
void setLedPwm(void)
|
||||||
{
|
{
|
||||||
uint8_t brightnessPercent = GenericHidInBuffer[1];
|
uint8_t brightnessPercent = GenericHidInBuffer[1];
|
||||||
@@ -90,9 +84,6 @@ void UsbProtocolHandler(void)
|
|||||||
break;
|
break;
|
||||||
case UsbCommandId_WriteLedDriver:
|
case UsbCommandId_WriteLedDriver:
|
||||||
break;
|
break;
|
||||||
case UsbCommandId_ReadMergeSensor:
|
|
||||||
readMergeSensor();
|
|
||||||
break;
|
|
||||||
case UsbCommandId_WriteUserConfiguration:
|
case UsbCommandId_WriteUserConfiguration:
|
||||||
UsbCommand_WriteConfig(false);
|
UsbCommand_WriteConfig(false);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -12,12 +12,11 @@
|
|||||||
UsbCommandId_Reenumerate = 1,
|
UsbCommandId_Reenumerate = 1,
|
||||||
UsbCommandId_SetTestLed = 2,
|
UsbCommandId_SetTestLed = 2,
|
||||||
UsbCommandId_WriteLedDriver = 3,
|
UsbCommandId_WriteLedDriver = 3,
|
||||||
UsbCommandId_ReadMergeSensor = 7,
|
|
||||||
UsbCommandId_WriteUserConfiguration = 8,
|
UsbCommandId_WriteUserConfiguration = 8,
|
||||||
UsbCommandId_ApplyConfig = 9,
|
UsbCommandId_ApplyConfig = 9,
|
||||||
UsbCommandId_SetLedPwm = 10,
|
UsbCommandId_SetLedPwm = 10,
|
||||||
UsbCommandId_GetAdcValue = 11,
|
UsbCommandId_GetAdcValue = 11,
|
||||||
UsbCommandId_LaunchEepromTransferLegacy = 12,
|
UsbCommandId_LaunchEepromTransferLegacy = 12,
|
||||||
UsbCommandId_ReadHardwareConfiguration = 13,
|
UsbCommandId_ReadHardwareConfiguration = 13,
|
||||||
UsbCommandId_WriteHardwareConfiguration = 14,
|
UsbCommandId_WriteHardwareConfiguration = 14,
|
||||||
UsbCommandId_ReadUserConfiguration = 15,
|
UsbCommandId_ReadUserConfiguration = 15,
|
||||||
|
|||||||
Reference in New Issue
Block a user