Handle disable key matrix scan test action for the right keyboard half.

This commit is contained in:
László Monda
2017-04-29 21:15:04 +02:00
parent 59be7dd5ea
commit fef5deea4a
2 changed files with 11 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
#include "fsl_gpio.h"
#include "key_matrix.h"
#include "test_states.h"
void KeyMatrix_Init(key_matrix_t *keyMatrix)
{
@@ -20,6 +21,10 @@ 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;