summaryrefslogtreecommitdiffstats
path: root/quantum/matrix.c
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2022-07-07 10:00:40 +0200
committerGitHub <noreply@github.com>2022-07-07 10:00:40 +0200
commit8224f62806b66f0825b68fd8c00436ee57a28e9a (patch)
tree33e16a84a05073fd439e6a86f09631132a546794 /quantum/matrix.c
parentcca5d3532128a9d1aa2ab39405d935fc132c752d (diff)
Make debounce() signal changes in the cooked matrix as return value (#17554)
Diffstat (limited to 'quantum/matrix.c')
-rw-r--r--quantum/matrix.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/quantum/matrix.c b/quantum/matrix.c
index db59b73754..db683104ed 100644
--- a/quantum/matrix.c
+++ b/quantum/matrix.c
@@ -337,10 +337,9 @@ uint8_t matrix_scan(void) {
if (changed) memcpy(raw_matrix, curr_matrix, sizeof(curr_matrix));
#ifdef SPLIT_KEYBOARD
- debounce(raw_matrix, matrix + thisHand, ROWS_PER_HAND, changed);
- changed = (changed || matrix_post_scan());
+ changed = debounce(raw_matrix, matrix + thisHand, ROWS_PER_HAND, changed) | matrix_post_scan();
#else
- debounce(raw_matrix, matrix, ROWS_PER_HAND, changed);
+ changed = debounce(raw_matrix, matrix, ROWS_PER_HAND, changed);
matrix_scan_quantum();
#endif
return (uint8_t)changed;