summaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_leader.h
diff options
context:
space:
mode:
authorDrashna Jael're <drashna@live.com>2021-07-08 21:16:31 -0700
committerDrashna Jael're <drashna@live.com>2021-07-08 21:16:31 -0700
commit4d0291668b0feb3e54b03011e9a9b4349ed83d99 (patch)
tree8a58c5d0d3030d7400c6670a97e463343c52ae46 /quantum/process_keycode/process_leader.h
parent996a19ee7ba3308e17fd347afde0b135852835cc (diff)
parenta913db63aa41f7d1c939d735fbd316a85225d935 (diff)
Merge tag '0.13.13' into firmware_21
Diffstat (limited to 'quantum/process_keycode/process_leader.h')
-rw-r--r--quantum/process_keycode/process_leader.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_leader.h b/quantum/process_keycode/process_leader.h
index 9844f27a1b..f3fe14a432 100644
--- a/quantum/process_keycode/process_leader.h
+++ b/quantum/process_keycode/process_leader.h
@@ -35,4 +35,9 @@ void qk_leader_start(void);
extern uint16_t leader_time; \
extern uint16_t leader_sequence[5]; \
extern uint8_t leader_sequence_size
-#define LEADER_DICTIONARY() if (leading && timer_elapsed(leader_time) > LEADER_TIMEOUT)
+
+#ifdef LEADER_NO_TIMEOUT
+# define LEADER_DICTIONARY() if (leading && leader_sequence_size > 0 && timer_elapsed(leader_time) > LEADER_TIMEOUT)
+#else
+# define LEADER_DICTIONARY() if (leading && timer_elapsed(leader_time) > LEADER_TIMEOUT)
+#endif