diff options
-rw-r--r-- | quantum/matrix.c | 4 | ||||
-rw-r--r-- | quantum/split_common/matrix.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/quantum/matrix.c b/quantum/matrix.c index 9e998508a..c68c56cac 100644 --- a/quantum/matrix.c +++ b/quantum/matrix.c | |||
@@ -89,7 +89,7 @@ static void init_pins(void) { | |||
89 | } | 89 | } |
90 | } | 90 | } |
91 | 91 | ||
92 | static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) { | 92 | static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) { |
93 | // Start with a clear matrix row | 93 | // Start with a clear matrix row |
94 | matrix_row_t current_row_value = 0; | 94 | matrix_row_t current_row_value = 0; |
95 | 95 | ||
@@ -149,7 +149,7 @@ static bool read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col) | |||
149 | // For each row... | 149 | // For each row... |
150 | for (uint8_t row_index = 0; row_index < MATRIX_ROWS; row_index++) { | 150 | for (uint8_t row_index = 0; row_index < MATRIX_ROWS; row_index++) { |
151 | // Store last value of row prior to reading | 151 | // Store last value of row prior to reading |
152 | matrix_row_t last_row_value = current_matrix[row_index]; | 152 | matrix_row_t last_row_value = current_matrix[row_index]; |
153 | matrix_row_t current_row_value = last_row_value; | 153 | matrix_row_t current_row_value = last_row_value; |
154 | 154 | ||
155 | // Check row pin state | 155 | // Check row pin state |
diff --git a/quantum/split_common/matrix.c b/quantum/split_common/matrix.c index 27c37d4b0..c3b43020c 100644 --- a/quantum/split_common/matrix.c +++ b/quantum/split_common/matrix.c | |||
@@ -106,7 +106,7 @@ static void init_pins(void) { | |||
106 | } | 106 | } |
107 | } | 107 | } |
108 | 108 | ||
109 | static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) { | 109 | static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) { |
110 | // Start with a clear matrix row | 110 | // Start with a clear matrix row |
111 | matrix_row_t current_row_value = 0; | 111 | matrix_row_t current_row_value = 0; |
112 | 112 | ||
@@ -166,7 +166,7 @@ static bool read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col) | |||
166 | // For each row... | 166 | // For each row... |
167 | for (uint8_t row_index = 0; row_index < ROWS_PER_HAND; row_index++) { | 167 | for (uint8_t row_index = 0; row_index < ROWS_PER_HAND; row_index++) { |
168 | // Store last value of row prior to reading | 168 | // Store last value of row prior to reading |
169 | matrix_row_t last_row_value = current_matrix[row_index]; | 169 | matrix_row_t last_row_value = current_matrix[row_index]; |
170 | matrix_row_t current_row_value = last_row_value; | 170 | matrix_row_t current_row_value = last_row_value; |
171 | 171 | ||
172 | // Check row pin state | 172 | // Check row pin state |