summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-11-19 05:20:07 +0100
committerGitHub <noreply@github.com>2016-11-19 05:20:07 +0100
commita06115df19a74d39b08758472b221e630c3680d3 (patch)
tree1899d5ded7c52024fb9dcf5da38909646779fd2a
parentc38b3e3be93a8b4f520212117b6498a288d67751 (diff)
downloadqmk_firmware-a06115df19a74d39b08758472b221e630c3680d3.tar.gz
qmk_firmware-a06115df19a74d39b08758472b221e630c3680d3.tar.xz
don't always detect a matrix change (fixes debounce)
-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)