Browse Source

[Bug] Fix compilation error when defining QUICK_TAP_TERM_PER_KEY (#19893)

pull/19905/head
precondition 1 year ago
committed by GitHub
parent
commit
93f2ed3abf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      quantum/action_tapping.c
  2. +4
    -0
      tests/tap_hold_configurations/quick_tap/config.h

+ 1
- 1
quantum/action_tapping.c View File

@ -122,7 +122,7 @@ void action_tapping_process(keyrecord_t record) {
* readable. The conditional definition of tapping_keycode and all the
* conditional uses of it are hidden inside macros named TAP_...
*/
# if (defined(AUTO_SHIFT_ENABLE) && defined(RETRO_SHIFT)) || defined(PERMISSIVE_HOLD_PER_KEY) || defined(QUICK_TAP_TERM_PER_KEY) || defined(HOLD_ON_OTHER_KEY_PRESS_PER_KEY)
# if (defined(AUTO_SHIFT_ENABLE) && defined(RETRO_SHIFT)) || defined(PERMISSIVE_HOLD_PER_KEY) || defined(HOLD_ON_OTHER_KEY_PRESS_PER_KEY)
# define TAP_DEFINE_KEYCODE uint16_t tapping_keycode = get_record_keycode(&tapping_key, false)
# else
# define TAP_DEFINE_KEYCODE


+ 4
- 0
tests/tap_hold_configurations/quick_tap/config.h View File

@ -19,3 +19,7 @@
#include "test_common.h"
#define QUICK_TAP_TERM 100
// Although a seemingly superfluous addition since the default per-key function behaves
// no differently from defining a single global QUICK_TAP_TERM, this has been useful
// to catch compilation errors and prevent regressions in the future; see PR #19893.
#define QUICK_TAP_TERM_PER_KEY

Loading…
Cancel
Save