Implement disabling keyboard matrix scanning for the left keyboard half, too.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
BridgeCommand_GetKeyStates,
|
||||
BridgeCommand_SetTestLed,
|
||||
BridgeCommand_SetLedPwmBrightness,
|
||||
BridgeCommand_SetDisableKeyMatrixScanState,
|
||||
} bridge_command_t;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "fsl_gpio.h"
|
||||
#include "key_matrix.h"
|
||||
#include "test_states.h"
|
||||
|
||||
void KeyMatrix_Init(key_matrix_t *keyMatrix)
|
||||
{
|
||||
@@ -21,10 +20,6 @@ void KeyMatrix_Init(key_matrix_t *keyMatrix)
|
||||
|
||||
void KeyMatrix_Scan(key_matrix_t *keyMatrix)
|
||||
{
|
||||
if (TestStates.disableKeyMatrixScan) {
|
||||
return;
|
||||
}
|
||||
|
||||
uint8_t *keyState = keyMatrix->keyStates;
|
||||
|
||||
key_matrix_pin_t *rowEnd = keyMatrix->rows + keyMatrix->rowNum;
|
||||
|
||||
Reference in New Issue
Block a user