summaryrefslogtreecommitdiff
path: root/keyboard/hid_liber/matrix.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-03-12 16:05:50 +0900
committertmk <nobody@nowhere>2013-03-12 16:05:50 +0900
commit30f9baf8985f3caa626bcd0eef8519b93f23669b (patch)
treeea5b5e0aba4c1229c57d184205d4fc11abfa0a86 /keyboard/hid_liber/matrix.c
parentc4ab832be0f110a127b20e8df2b5223bceb8dcd1 (diff)
Fix debouncing and add legacy keymap support
Diffstat (limited to 'keyboard/hid_liber/matrix.c')
-rw-r--r--keyboard/hid_liber/matrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboard/hid_liber/matrix.c b/keyboard/hid_liber/matrix.c
index 2d939ef63b..12ade33027 100644
--- a/keyboard/hid_liber/matrix.c
+++ b/keyboard/hid_liber/matrix.c
@@ -173,7 +173,6 @@ uint8_t matrix_scan(void)
if (debouncing) {
debug("bounce!: "); debug_hex(debouncing); print("\n");
}
- _delay_ms(1); // improved affect on bouncing
debouncing = DEBOUNCE;
}
}
@@ -181,6 +180,7 @@ uint8_t matrix_scan(void)
}
if (debouncing) {
+ _delay_ms(1);
debouncing--;
}