1
0
Fork 0

Fix errors with matrix_output_unselect_delay function calls (#13645)

This commit is contained in:
Drashna Jael're 2021-07-22 21:42:59 -07:00 committed by GitHub
parent 750f40566a
commit 816accda3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 59 additions and 58 deletions

View file

@ -19,7 +19,7 @@
#include "transactions.h"
#define ERROR_DISCONNECT_COUNT 5
#define ROWS_PER_HAND (MATRIX_ROWS / 2)
#define ROWS_PER_HAND (MATRIX_ROWS / 2)
static const pin_t row_pins[ROWS_PER_HAND] = MATRIX_ROW_PINS;
static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
@ -141,7 +141,7 @@ uint8_t matrix_scan(void) {
/* Drive row pin high again. */
ATOMIC_BLOCK_FORCEON { writePinHigh(row_pins[row_idx]); }
matrix_output_unselect_delay();
matrix_output_unselect_delay(row_idx, row_pins[row_idx] != 0);
}
if (memcmp(raw_matrix, current_matrix, sizeof(current_matrix)) != 0) {
@ -153,4 +153,4 @@ uint8_t matrix_scan(void) {
bool remote_changed = matrix_post_scan();
return (uint8_t)(local_changed || remote_changed);
}
}