Rename SlaveCommand_GetKeyStates to SlaveCommand_RequestKeyStates
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user