From 07cb997b6d3de54573ccfdedcb8ca2e9fd89c9fd Mon Sep 17 00:00:00 2001 From: ahtn Date: Tue, 25 Jul 2017 13:25:48 +1000 Subject: 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`. --- keyboards/lets_split/split_util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'keyboards/lets_split/split_util.c') 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 -- cgit v1.2.3-70-g09d2