diff options
| author | alex-ong <the.onga@gmail.com> | 2019-01-26 17:03:46 +1100 |
|---|---|---|
| committer | alex-ong <the.onga@gmail.com> | 2019-01-26 17:03:46 +1100 |
| commit | d0b691df0ee74863ca54ca697aa4d4212cf401a7 (patch) | |
| tree | f584ae6d23347b7256a679fd3eecd653744b6187 /quantum/matrix.c | |
| parent | 3949ab322dcce75f470ddfbe701c8763add69e63 (diff) | |
DO NOT USE - debounce successfully compiled.
Diffstat (limited to 'quantum/matrix.c')
| -rw-r--r-- | quantum/matrix.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/quantum/matrix.c b/quantum/matrix.c index 71292db511..8fc4175bde 100644 --- a/quantum/matrix.c +++ b/quantum/matrix.c | |||
| @@ -51,9 +51,8 @@ static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS; | |||
| 51 | #endif | 51 | #endif |
| 52 | 52 | ||
| 53 | /* matrix state(1:on, 0:off) */ | 53 | /* matrix state(1:on, 0:off) */ |
| 54 | static matrix_row_t raw_matrix[MATRIX_ROWS]; | 54 | static matrix_row_t raw_matrix[MATRIX_ROWS]; //raw values |
| 55 | 55 | static matrix_row_t matrix[MATRIX_ROWS]; //debounced values | |
| 56 | static matrix_row_t matrix[MATRIX_ROWS]; | ||
| 57 | 56 | ||
| 58 | #if (DIODE_DIRECTION == COL2ROW) | 57 | #if (DIODE_DIRECTION == COL2ROW) |
| 59 | static void init_cols(void); | 58 | static void init_cols(void); |
| @@ -123,7 +122,7 @@ void matrix_init(void) { | |||
| 123 | raw_matrix[i] = 0; | 122 | raw_matrix[i] = 0; |
| 124 | matrix[i] = 0; | 123 | matrix[i] = 0; |
| 125 | } | 124 | } |
| 126 | debounce_init(MATRIX_ROWS); | 125 | debounce_init(); |
| 127 | 126 | ||
| 128 | matrix_init_quantum(); | 127 | matrix_init_quantum(); |
| 129 | } | 128 | } |
| @@ -144,7 +143,7 @@ uint8_t matrix_scan(void) | |||
| 144 | } | 143 | } |
| 145 | #endif | 144 | #endif |
| 146 | 145 | ||
| 147 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | 146 | debounce(raw_matrix, matrix, changed); |
| 148 | 147 | ||
| 149 | matrix_scan_quantum(); | 148 | matrix_scan_quantum(); |
| 150 | return 1; | 149 | return 1; |
