aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/matrix.c
diff options
context:
space:
mode:
authorGravatar Jack Humbert <jack.humb@gmail.com>2016-11-18 23:20:07 -0500
committerGravatar GitHub <noreply@github.com>2016-11-18 23:20:07 -0500
commita06115df19a74d39b08758472b221e630c3680d3 (patch)
tree1899d5ded7c52024fb9dcf5da38909646779fd2a /quantum/matrix.c
parentc38b3e3be93a8b4f520212117b6498a288d67751 (diff)
downloadqmk_firmware-a06115df19a74d39b08758472b221e630c3680d3.tar.gz
don't always detect a matrix change (fixes debounce)
Diffstat (limited to 'quantum/matrix.c')
-rw-r--r--quantum/matrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/matrix.c b/quantum/matrix.c
index 3c488b417..07eb87bc3 100644
--- a/quantum/matrix.c
+++ b/quantum/matrix.c
@@ -310,7 +310,7 @@ static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row)
// Unselect row
unselect_row(current_row);
- return (last_row_value == current_matrix[current_row]);
+ return (last_row_value != current_matrix[current_row]);
}
static void select_row(uint8_t row)