diff options
author | tmk <nobody@nowhere> | 2013-07-29 15:18:42 +0200 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-07-29 15:18:42 +0200 |
commit | c274cc8cdc39c10c88fd5214fdbe397047309791 (patch) | |
tree | e03d0dcc6d69e4a6fbe6aa4c3937dea07473aff4 | |
parent | 893ff0a799d7d42452cd8d09934380e90d8d3935 (diff) | |
download | qmk_firmware-c274cc8cdc39c10c88fd5214fdbe397047309791.tar.gz qmk_firmware-c274cc8cdc39c10c88fd5214fdbe397047309791.tar.xz |
Fix tapping count over flow(issue #52)
-rw-r--r-- | common/action_tapping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/action_tapping.c b/common/action_tapping.c index 9b5512a8e..a6292535e 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; |