aboutsummaryrefslogtreecommitdiff
path: root/quantum/quantum.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r--quantum/quantum.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 62d9ef923..4f4cee4e9 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -135,7 +135,7 @@ void reset_keyboard(void) {
135#endif 135#endif
136 136
137static bool shift_interrupted[2] = {0, 0}; 137static bool shift_interrupted[2] = {0, 0};
138static uint16_t scs_timer = 0; 138static uint16_t scs_timer[2] = {0, 0};
139 139
140bool process_record_quantum(keyrecord_t *record) { 140bool process_record_quantum(keyrecord_t *record) {
141 141
@@ -395,7 +395,7 @@ bool process_record_quantum(keyrecord_t *record) {
395 case KC_LSPO: { 395 case KC_LSPO: {
396 if (record->event.pressed) { 396 if (record->event.pressed) {
397 shift_interrupted[0] = false; 397 shift_interrupted[0] = false;
398 scs_timer = timer_read (); 398 scs_timer[0] = timer_read ();
399 register_mods(MOD_BIT(KC_LSFT)); 399 register_mods(MOD_BIT(KC_LSFT));
400 } 400 }
401 else { 401 else {
@@ -405,7 +405,7 @@ bool process_record_quantum(keyrecord_t *record) {
405 shift_interrupted[1] = true; 405 shift_interrupted[1] = true;
406 } 406 }
407 #endif 407 #endif
408 if (!shift_interrupted[0] && timer_elapsed(scs_timer) < TAPPING_TERM) { 408 if (!shift_interrupted[0] && timer_elapsed(scs_timer[0]) < TAPPING_TERM) {
409 register_code(LSPO_KEY); 409 register_code(LSPO_KEY);
410 unregister_code(LSPO_KEY); 410 unregister_code(LSPO_KEY);
411 } 411 }
@@ -418,7 +418,7 @@ bool process_record_quantum(keyrecord_t *record) {
418 case KC_RSPC: { 418 case KC_RSPC: {
419 if (record->event.pressed) { 419 if (record->event.pressed) {
420 shift_interrupted[1] = false; 420 shift_interrupted[1] = false;
421 scs_timer = timer_read (); 421 scs_timer[1] = timer_read ();
422 register_mods(MOD_BIT(KC_RSFT)); 422 register_mods(MOD_BIT(KC_RSFT));
423 } 423 }
424 else { 424 else {
@@ -428,7 +428,7 @@ bool process_record_quantum(keyrecord_t *record) {
428 shift_interrupted[1] = true; 428 shift_interrupted[1] = true;
429 } 429 }
430 #endif 430 #endif
431 if (!shift_interrupted[1] && timer_elapsed(scs_timer) < TAPPING_TERM) { 431 if (!shift_interrupted[1] && timer_elapsed(scs_timer[1]) < TAPPING_TERM) {
432 register_code(RSPC_KEY); 432 register_code(RSPC_KEY);
433 unregister_code(RSPC_KEY); 433 unregister_code(RSPC_KEY);
434 } 434 }