From: tmk Date: Mon, 29 Jul 2013 13:18:42 +0000 (+0900) Subject: Fix tapping count over flow(issue #52) X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=c274cc8cdc39c10c88fd5214fdbe397047309791;p=max%2Ftmk_keyboard.git Fix tapping count over flow(issue #52) --- 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;