Rename UhkModulePhase_SendTestLedCommand to UhkModulePhase_SetTestLed

This commit is contained in:
László Monda
2017-09-22 02:59:12 +02:00
parent 2e33a83e29
commit cc57daa674
2 changed files with 3 additions and 3 deletions

View File

@@ -42,9 +42,9 @@ status_t UhkModuleSlaveDriver_Update(uint8_t uhkModuleId)
txBuffer[0] = SlaveCommand_SetLedPwmBrightness;
txBuffer[1] = uhkModuleInternalState->ledPwmBrightness;
status = I2cAsyncWrite(I2C_ADDRESS_LEFT_KEYBOARD_HALF_FIRMWARE, txBuffer, 2);
uhkModulePhase = UhkModulePhase_SendTestLedCommand;
uhkModulePhase = UhkModulePhase_SetTestLed;
break;
case UhkModulePhase_SendTestLedCommand:
case UhkModulePhase_SetTestLed:
txBuffer[0] = SlaveCommand_SetTestLed;
txBuffer[1] = uhkModuleInternalState->isTestLedOn;
status = I2cAsyncWrite(I2C_ADDRESS_LEFT_KEYBOARD_HALF_FIRMWARE, txBuffer, 2);

View File

@@ -24,7 +24,7 @@
UhkModulePhase_RequestKeyStates,
UhkModulePhase_ReceiveKeystates,
UhkModulePhase_SetLedPwmBrightness,
UhkModulePhase_SendTestLedCommand,
UhkModulePhase_SetTestLed,
} uhk_module_phase_t;
typedef struct {