summaryrefslogtreecommitdiff
path: root/keyboards/sekigon
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-12-29 05:26:28 -0800
committerGitHub <noreply@github.com>2021-12-29 05:26:28 -0800
commit0d02af816b6600a7399dacbc703827895b5baa1f (patch)
treefbfaf0f4607b2b661bc41934aa263f0977c30a33 /keyboards/sekigon
parent42caee329f31e70bc6f519ad7708982b37c78484 (diff)
[Keyboard] Update grs_70ec to use newer custom matrix (#15609)
Diffstat (limited to 'keyboards/sekigon')
-rw-r--r--keyboards/sekigon/grs_70ec/matrix.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/keyboards/sekigon/grs_70ec/matrix.c b/keyboards/sekigon/grs_70ec/matrix.c
index 98b2347937..926ed6f813 100644
--- a/keyboards/sekigon/grs_70ec/matrix.c
+++ b/keyboards/sekigon/grs_70ec/matrix.c
@@ -70,50 +70,3 @@ bool matrix_scan_custom(matrix_row_t current_matrix[]) {
return updated;
}
-
-bool matrix_post_scan(void) {
- bool changed = false;
- if (is_keyboard_master()) {
- static uint8_t error_count;
-
- matrix_row_t slave_matrix[ROWS_PER_HAND] = {0};
- if (!transport_master(matrix + thatHand, slave_matrix)) {
- error_count++;
-
- if (error_count > ERROR_DISCONNECT_COUNT) {
- // reset other half if disconnected
- dprintf("Error: disconnect split half\n");
- for (int i = 0; i < ROWS_PER_HAND; ++i) {
- matrix[thatHand + i] = 0;
- slave_matrix[i] = 0;
- }
-
- changed = true;
- }
- } else {
- error_count = 0;
-
- for (int i = 0; i < ROWS_PER_HAND; ++i) {
- if (matrix[thatHand + i] != slave_matrix[i]) {
- matrix[thatHand + i] = slave_matrix[i];
- changed = true;
- }
- }
- }
-
- matrix_scan_quantum();
- } else {
- transport_slave(matrix + thatHand, matrix + thisHand);
-
- matrix_slave_scan_user();
- }
- return changed;
-}
-
-uint8_t matrix_scan(void) {
- bool changed = matrix_scan_custom(raw_matrix) || matrix_post_scan();
-
- debounce(raw_matrix, matrix + thisHand, ROWS_PER_HAND, changed);
-
- return changed;
-}