From c274cc8cdc39c10c88fd5214fdbe397047309791 Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 29 Jul 2013 22:18:42 +0900 Subject: [PATCH] Fix tapping count over flow(issue #52) --- common/action_tapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/action_tapping.c b/common/action_tapping.c index 9b5512a8..a6292535 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; -- 2.46.2