diff options
Diffstat (limited to 'tmk_core/common/keyboard.c')
-rw-r--r-- | tmk_core/common/keyboard.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/tmk_core/common/keyboard.c b/tmk_core/common/keyboard.c index 15652276b..849d74aa1 100644 --- a/tmk_core/common/keyboard.c +++ b/tmk_core/common/keyboard.c | |||
@@ -252,9 +252,6 @@ void keyboard_init(void) { | |||
252 | void keyboard_task(void) | 252 | void keyboard_task(void) |
253 | { | 253 | { |
254 | static matrix_row_t matrix_prev[MATRIX_ROWS]; | 254 | static matrix_row_t matrix_prev[MATRIX_ROWS]; |
255 | #ifdef MATRIX_HAS_GHOST | ||
256 | // static matrix_row_t matrix_ghost[MATRIX_ROWS]; | ||
257 | #endif | ||
258 | static uint8_t led_status = 0; | 255 | static uint8_t led_status = 0; |
259 | matrix_row_t matrix_row = 0; | 256 | matrix_row_t matrix_row = 0; |
260 | matrix_row_t matrix_change = 0; | 257 | matrix_row_t matrix_change = 0; |
@@ -263,24 +260,14 @@ void keyboard_task(void) | |||
263 | #endif | 260 | #endif |
264 | 261 | ||
265 | matrix_scan(); | 262 | matrix_scan(); |
263 | |||
266 | if (is_keyboard_master()) { | 264 | if (is_keyboard_master()) { |
267 | for (uint8_t r = 0; r < MATRIX_ROWS; r++) { | 265 | for (uint8_t r = 0; r < MATRIX_ROWS; r++) { |
268 | matrix_row = matrix_get_row(r); | 266 | matrix_row = matrix_get_row(r); |
269 | matrix_change = matrix_row ^ matrix_prev[r]; | 267 | matrix_change = matrix_row ^ matrix_prev[r]; |
270 | if (matrix_change) { | 268 | if (matrix_change) { |
271 | #ifdef MATRIX_HAS_GHOST | 269 | #ifdef MATRIX_HAS_GHOST |
272 | if (has_ghost_in_row(r, matrix_row)) { | 270 | if (has_ghost_in_row(r, matrix_row)) { continue; } |
273 | /* Keep track of whether ghosted status has changed for | ||
274 | * debugging. But don't update matrix_prev until un-ghosted, or | ||
275 | * the last key would be lost. | ||
276 | */ | ||
277 | //if (debug_matrix && matrix_ghost[r] != matrix_row) { | ||
278 | // matrix_print(); | ||
279 | //} | ||
280 | //matrix_ghost[r] = matrix_row; | ||
281 | continue; | ||
282 | } | ||
283 | //matrix_ghost[r] = matrix_row; | ||
284 | #endif | 271 | #endif |
285 | if (debug_matrix) matrix_print(); | 272 | if (debug_matrix) matrix_print(); |
286 | for (uint8_t c = 0; c < MATRIX_COLS; c++) { | 273 | for (uint8_t c = 0; c < MATRIX_COLS; c++) { |