Rename UhkModulePhase_SendPwmBrightnessCommand to UhkModulePhase_SetLedPwmBrightness

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

View File

@@ -33,9 +33,9 @@ status_t UhkModuleSlaveDriver_Update(uint8_t uhkModuleId)
break; break;
case UhkModulePhase_ReceiveKeystates: case UhkModulePhase_ReceiveKeystates:
status = I2cAsyncRead(I2C_ADDRESS_LEFT_KEYBOARD_HALF_FIRMWARE, rxBuffer, KEY_STATE_BUFFER_SIZE); status = I2cAsyncRead(I2C_ADDRESS_LEFT_KEYBOARD_HALF_FIRMWARE, rxBuffer, KEY_STATE_BUFFER_SIZE);
uhkModulePhase = UhkModulePhase_SendPwmBrightnessCommand; uhkModulePhase = UhkModulePhase_SetLedPwmBrightness;
break; break;
case UhkModulePhase_SendPwmBrightnessCommand: case UhkModulePhase_SetLedPwmBrightness:
if (CRC16_IsMessageValid(rxBuffer, KEY_STATE_SIZE)) { if (CRC16_IsMessageValid(rxBuffer, KEY_STATE_SIZE)) {
BoolBitsToBytes(rxBuffer, CurrentKeyStates[SLOT_ID_LEFT_KEYBOARD_HALF], LEFT_KEYBOARD_HALF_KEY_COUNT); BoolBitsToBytes(rxBuffer, CurrentKeyStates[SLOT_ID_LEFT_KEYBOARD_HALF], LEFT_KEYBOARD_HALF_KEY_COUNT);
} }

View File

@@ -23,7 +23,7 @@
typedef enum { typedef enum {
UhkModulePhase_RequestKeyStates, UhkModulePhase_RequestKeyStates,
UhkModulePhase_ReceiveKeystates, UhkModulePhase_ReceiveKeystates,
UhkModulePhase_SendPwmBrightnessCommand, UhkModulePhase_SetLedPwmBrightness,
UhkModulePhase_SendTestLedCommand, UhkModulePhase_SendTestLedCommand,
} uhk_module_phase_t; } uhk_module_phase_t;