aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/debounce/none.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/debounce/none.c')
-rw-r--r--quantum/debounce/none.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/quantum/debounce/none.c b/quantum/debounce/none.c
index 0a8ccfc4ee..e614f41a6b 100644
--- a/quantum/debounce/none.c
+++ b/quantum/debounce/none.c
@@ -17,13 +17,13 @@
#include "debounce.h"
#include <string.h>
-void debounce_init(uint8_t num_rows) {}
+void debounce_init(void) {}
-bool debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool changed) {
+bool debounce(matrix_row_t raw[], matrix_row_t cooked[], bool changed) {
bool cooked_changed = false;
if (changed) {
- size_t matrix_size = num_rows * sizeof(matrix_row_t);
+ size_t matrix_size = MATRIX_ROWS_PER_HAND * sizeof(matrix_row_t);
if (memcmp(cooked, raw, matrix_size) != 0) {
memcpy(cooked, raw, matrix_size);
cooked_changed = true;
@@ -32,5 +32,3 @@ bool debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool
return cooked_changed;
}
-
-void debounce_free(void) {}