1
0

Fix tapping count over flow(issue #52)

This commit is contained in:
tmk 2013-07-29 22:18:42 +09:00
parent 893ff0a799
commit c274cc8cdc

View 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;