Rename SlaveCommand_GetKeyStates to SlaveCommand_RequestKeyStates

This commit is contained in:
László Monda
2017-09-22 02:47:05 +02:00
parent 2227508130
commit ac138d2da6
3 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ void SlaveProtocolHandler(void)
{ {
uint8_t commandId = SlaveRxBuffer[0]; uint8_t commandId = SlaveRxBuffer[0];
switch (commandId) { switch (commandId) {
case SlaveCommand_GetKeyStates: case SlaveCommand_RequestKeyStates:
SlaveTxSize = KEY_STATE_BUFFER_SIZE; SlaveTxSize = KEY_STATE_BUFFER_SIZE;
BoolBytesToBits(keyMatrix.keyStates, SlaveTxBuffer, LEFT_KEYBOARD_HALF_KEY_COUNT); BoolBytesToBits(keyMatrix.keyStates, SlaveTxBuffer, LEFT_KEYBOARD_HALF_KEY_COUNT);
CRC16_AppendToMessage(SlaveTxBuffer, KEY_STATE_SIZE); CRC16_AppendToMessage(SlaveTxBuffer, KEY_STATE_SIZE);

View File

@@ -27,7 +27,7 @@ status_t UhkModuleSlaveDriver_Update(uint8_t uhkModuleId)
switch (uhkModulePhase) { switch (uhkModulePhase) {
case UhkModulePhase_SendKeystatesRequestCommand: case UhkModulePhase_SendKeystatesRequestCommand:
txBuffer[0] = SlaveCommand_GetKeyStates; txBuffer[0] = SlaveCommand_RequestKeyStates;
status = I2cAsyncWrite(I2C_ADDRESS_LEFT_KEYBOARD_HALF_FIRMWARE, txBuffer, 1); status = I2cAsyncWrite(I2C_ADDRESS_LEFT_KEYBOARD_HALF_FIRMWARE, txBuffer, 1);
uhkModulePhase = UhkModulePhase_ReceiveKeystates; uhkModulePhase = UhkModulePhase_ReceiveKeystates;
break; break;

View File

@@ -4,7 +4,7 @@
// Typedefs: // Typedefs:
typedef enum { typedef enum {
SlaveCommand_GetKeyStates, SlaveCommand_RequestKeyStates,
SlaveCommand_SetTestLed, SlaveCommand_SetTestLed,
SlaveCommand_SetLedPwmBrightness, SlaveCommand_SetLedPwmBrightness,
SlaveCommand_JumpToBootloader, SlaveCommand_JumpToBootloader,