From ac138d2da6a61b91f3b19d5f4c21f839cd2946b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Fri, 22 Sep 2017 02:47:05 +0200 Subject: [PATCH] Rename SlaveCommand_GetKeyStates to SlaveCommand_RequestKeyStates --- left/src/slave_protocol_handler.c | 2 +- right/src/slave_drivers/uhk_module_driver.c | 2 +- shared/slave_protocol.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/left/src/slave_protocol_handler.c b/left/src/slave_protocol_handler.c index 4acfa9a..56f100f 100644 --- a/left/src/slave_protocol_handler.c +++ b/left/src/slave_protocol_handler.c @@ -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); diff --git a/right/src/slave_drivers/uhk_module_driver.c b/right/src/slave_drivers/uhk_module_driver.c index 3c02374..953d520 100644 --- a/right/src/slave_drivers/uhk_module_driver.c +++ b/right/src/slave_drivers/uhk_module_driver.c @@ -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; diff --git a/shared/slave_protocol.h b/shared/slave_protocol.h index ac95cbb..0c357da 100644 --- a/shared/slave_protocol.h +++ b/shared/slave_protocol.h @@ -4,7 +4,7 @@ // Typedefs: typedef enum { - SlaveCommand_GetKeyStates, + SlaveCommand_RequestKeyStates, SlaveCommand_SetTestLed, SlaveCommand_SetLedPwmBrightness, SlaveCommand_JumpToBootloader,