summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-07-29 22:18:42 +0900
committertmk <nobody@nowhere>2013-07-29 22:18:42 +0900
commitc274cc8cdc39c10c88fd5214fdbe397047309791 (patch)
treee03d0dcc6d69e4a6fbe6aa4c3937dea07473aff4
parent893ff0a799d7d42452cd8d09934380e90d8d3935 (diff)
Fix tapping count over flow(issue #52)
-rw-r--r--common/action_tapping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/action_tapping.c b/common/action_tapping.c
index 9b5512a8e8..a6292535ed 100644
--- a/common/action_tapping.c
+++ b/common/action_tapping.c
@@ -206,7 +206,7 @@ bool process_tapping(keyrecord_t *keyp)
if (!tapping_key.tap.interrupted && tapping_key.tap.count > 0) {
// sequential tap.
keyp->tap = tapping_key.tap;
- keyp->tap.count += 1;
+ if (keyp->tap.count < 15) keyp->tap.count += 1;
debug("Tapping: Tap press("); debug_dec(keyp->tap.count); debug(")\n");
process_action(keyp);
tapping_key = *keyp;