forked from mirrors/qmk_userspace
Make debounce() signal changes in the cooked matrix as return value (#17554)
This commit is contained in:
parent
cca5d35321
commit
8224f62806
13 changed files with 83 additions and 39 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue