diff options
Diffstat (limited to 'quantum/process_keycode/process_leader.c')
| -rw-r--r-- | quantum/process_keycode/process_leader.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_leader.c b/quantum/process_keycode/process_leader.c index 58a615d85..cf63f2514 100644 --- a/quantum/process_keycode/process_leader.c +++ b/quantum/process_keycode/process_leader.c | |||
| @@ -49,7 +49,10 @@ bool process_leader(uint16_t keycode, keyrecord_t *record) { | |||
| 49 | // Leader key set-up | 49 | // Leader key set-up |
| 50 | if (record->event.pressed) { | 50 | if (record->event.pressed) { |
| 51 | if (leading) { | 51 | if (leading) { |
| 52 | if (timer_elapsed(leader_time) < LEADER_TIMEOUT) { | 52 | # ifndef LEADER_NO_TIMEOUT |
| 53 | if (timer_elapsed(leader_time) < LEADER_TIMEOUT) | ||
| 54 | # endif // LEADER_NO_TIMEOUT | ||
| 55 | { | ||
| 53 | # ifndef LEADER_KEY_STRICT_KEY_PROCESSING | 56 | # ifndef LEADER_KEY_STRICT_KEY_PROCESSING |
| 54 | if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX)) { | 57 | if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX)) { |
| 55 | keycode = keycode & 0xFF; | 58 | keycode = keycode & 0xFF; |
