diff --git a/right/src/slave_drivers/uhk_module_driver.c b/right/src/slave_drivers/uhk_module_driver.c index baaf7a6..cca0b91 100644 --- a/right/src/slave_drivers/uhk_module_driver.c +++ b/right/src/slave_drivers/uhk_module_driver.c @@ -33,9 +33,9 @@ status_t UhkModuleSlaveDriver_Update(uint8_t uhkModuleId) break; case UhkModulePhase_ReceiveKeystates: status = I2cAsyncRead(I2C_ADDRESS_LEFT_KEYBOARD_HALF_FIRMWARE, rxBuffer, KEY_STATE_BUFFER_SIZE); - uhkModulePhase = UhkModulePhase_SendPwmBrightnessCommand; + uhkModulePhase = UhkModulePhase_SetLedPwmBrightness; break; - case UhkModulePhase_SendPwmBrightnessCommand: + case UhkModulePhase_SetLedPwmBrightness: if (CRC16_IsMessageValid(rxBuffer, KEY_STATE_SIZE)) { BoolBitsToBytes(rxBuffer, CurrentKeyStates[SLOT_ID_LEFT_KEYBOARD_HALF], LEFT_KEYBOARD_HALF_KEY_COUNT); } diff --git a/right/src/slave_drivers/uhk_module_driver.h b/right/src/slave_drivers/uhk_module_driver.h index f448617..066fd6d 100644 --- a/right/src/slave_drivers/uhk_module_driver.h +++ b/right/src/slave_drivers/uhk_module_driver.h @@ -23,7 +23,7 @@ typedef enum { UhkModulePhase_RequestKeyStates, UhkModulePhase_ReceiveKeystates, - UhkModulePhase_SendPwmBrightnessCommand, + UhkModulePhase_SetLedPwmBrightness, UhkModulePhase_SendTestLedCommand, } uhk_module_phase_t;