]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Fix tapping count over flow(issue #52)
authortmk <nobody@nowhere>
Mon, 29 Jul 2013 13:18:42 +0000 (22:18 +0900)
committertmk <nobody@nowhere>
Mon, 29 Jul 2013 13:18:42 +0000 (22:18 +0900)
common/action_tapping.c

index 9b5512a8e8addcdc60fe548bac887dbbd0b8a96e..a6292535ed56df0f44770ec04577d12562b1e110 100644 (file)
@@ -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;