summaryrefslogtreecommitdiff
path: root/quantum/quantum.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r--quantum/quantum.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 49ac20d61f..006464e5a8 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -54,7 +54,7 @@ int offset = 7;
bool leading = false;
uint16_t leader_time = 0;
-uint16_t leader_sequence[3] = {0, 0, 0};
+uint16_t leader_sequence[5] = {0, 0, 0, 0, 0};
uint8_t leader_sequence_size = 0;
// Chording stuff
@@ -335,6 +335,8 @@ bool process_record_quantum(keyrecord_t *record) {
leader_sequence[0] = 0;
leader_sequence[1] = 0;
leader_sequence[2] = 0;
+ leader_sequence[3] = 0;
+ leader_sequence[4] = 0;
return false;
}
if (leading && timer_elapsed(leader_time) < LEADER_TIMEOUT) {