aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/lets_split/split_util.c
diff options
context:
space:
mode:
authorGravatar ahtn <ahtn@users.noreply.github.com>2017-07-25 13:25:48 +1000
committerGravatar Jack Humbert <jack.humb@gmail.com>2017-07-29 11:38:00 -0400
commit07cb997b6d3de54573ccfdedcb8ca2e9fd89c9fd (patch)
tree2d8bc920f2fe11068e4f6057cdede8004cdc2014 /keyboards/lets_split/split_util.c
parentac634aa4552b834f2d9c0294022ce40874a1481a (diff)
downloadqmk_firmware-07cb997b6d3de54573ccfdedcb8ca2e9fd89c9fd.tar.gz
Changes lets_split to use timer based debouncing
The let's split code used delays in its debouncing algorithm which increases input latency. This commit copies and adapts the code from `quantum/matrix.c` to lets_split's `matrix.c`.
Diffstat (limited to 'keyboards/lets_split/split_util.c')
-rw-r--r--keyboards/lets_split/split_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/keyboards/lets_split/split_util.c b/keyboards/lets_split/split_util.c
index 39639c3b4..346cbc908 100644
--- a/keyboards/lets_split/split_util.c
+++ b/keyboards/lets_split/split_util.c
@@ -8,6 +8,7 @@
#include "matrix.h"
#include "keyboard.h"
#include "config.h"
+#include "timer.h"
#ifdef USE_I2C
# include "i2c.h"
@@ -42,6 +43,7 @@ static void keyboard_master_setup(void) {
}
static void keyboard_slave_setup(void) {
+ timer_init();
#ifdef USE_I2C
i2c_slave_init(SLAVE_I2C_ADDRESS);
#else