Skip to content

Instantly share code, notes, and snippets.

@typester
Created January 15, 2018 07:10
Show Gist options
  • Select an option

  • Save typester/38cc078b38e71ea1c09da7a58e656de0 to your computer and use it in GitHub Desktop.

Select an option

Save typester/38cc078b38e71ea1c09da7a58e656de0 to your computer and use it in GitHub Desktop.
diff --git a/tmk_core/common/action_tapping.c b/tmk_core/common/action_tapping.c
index 531a3ca34..0f3596f59 100644
--- a/tmk_core/common/action_tapping.c
+++ b/tmk_core/common/action_tapping.c
@@ -149,7 +149,8 @@ bool process_tapping(keyrecord_t *keyp)
debug("Tapping: Tap release("); debug_dec(tapping_key.tap.count); debug(")\n");
keyp->tap = tapping_key.tap;
process_record(keyp);
- tapping_key = *keyp;
+ /* always reset tap timer when tap release */
+ tapping_key = (keyrecord_t){};
debug_tapping_key();
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment