Rename SlaveCommand_GetKeyStates to SlaveCommand_RequestKeyStates
This commit is contained in:
@@ -33,7 +33,7 @@ void SlaveProtocolHandler(void)
|
||||
{
|
||||
uint8_t commandId = SlaveRxBuffer[0];
|
||||
switch (commandId) {
|
||||
case SlaveCommand_GetKeyStates:
|
||||
case SlaveCommand_RequestKeyStates:
|
||||
SlaveTxSize = KEY_STATE_BUFFER_SIZE;
|
||||
BoolBytesToBits(keyMatrix.keyStates, SlaveTxBuffer, LEFT_KEYBOARD_HALF_KEY_COUNT);
|
||||
CRC16_AppendToMessage(SlaveTxBuffer, KEY_STATE_SIZE);
|
||||
|
||||
@@ -27,7 +27,7 @@ status_t UhkModuleSlaveDriver_Update(uint8_t uhkModuleId)
|
||||
|
||||
switch (uhkModulePhase) {
|
||||
case UhkModulePhase_SendKeystatesRequestCommand:
|
||||
txBuffer[0] = SlaveCommand_GetKeyStates;
|
||||
txBuffer[0] = SlaveCommand_RequestKeyStates;
|
||||
status = I2cAsyncWrite(I2C_ADDRESS_LEFT_KEYBOARD_HALF_FIRMWARE, txBuffer, 1);
|
||||
uhkModulePhase = UhkModulePhase_ReceiveKeystates;
|
||||
break;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// Typedefs:
|
||||
|
||||
typedef enum {
|
||||
SlaveCommand_GetKeyStates,
|
||||
SlaveCommand_RequestKeyStates,
|
||||
SlaveCommand_SetTestLed,
|
||||
SlaveCommand_SetLedPwmBrightness,
|
||||
SlaveCommand_JumpToBootloader,
|
||||
|
||||
Reference in New Issue
Block a user