diff options
| author | Joe Martin <joem@numberfour.eu> | 2017-10-02 14:06:52 +0200 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2017-10-10 07:15:41 -1000 |
| commit | b91ffba4be0da2b587fae7a8a25d5dfce2f55d94 (patch) | |
| tree | e970206ad16bc40076c4ee3265e6d57bd5989620 /tmk_core/common/action.c | |
| parent | 01ac8a6051be2f99ef4bba3515e08dd0cd298439 (diff) | |
| download | qmk_firmware-b91ffba4be0da2b587fae7a8a25d5dfce2f55d94.tar.gz qmk_firmware-b91ffba4be0da2b587fae7a8a25d5dfce2f55d94.zip | |
#1792 added in waits from tmk for locking switches
fixes #1792
Diffstat (limited to 'tmk_core/common/action.c')
| -rw-r--r-- | tmk_core/common/action.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index 84e661523..41de01485 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c | |||
| @@ -619,6 +619,7 @@ void register_code(uint8_t code) | |||
| 619 | #endif | 619 | #endif |
| 620 | add_key(KC_CAPSLOCK); | 620 | add_key(KC_CAPSLOCK); |
| 621 | send_keyboard_report(); | 621 | send_keyboard_report(); |
| 622 | wait_ms(100); | ||
| 622 | del_key(KC_CAPSLOCK); | 623 | del_key(KC_CAPSLOCK); |
| 623 | send_keyboard_report(); | 624 | send_keyboard_report(); |
| 624 | } | 625 | } |
| @@ -629,6 +630,7 @@ void register_code(uint8_t code) | |||
| 629 | #endif | 630 | #endif |
| 630 | add_key(KC_NUMLOCK); | 631 | add_key(KC_NUMLOCK); |
| 631 | send_keyboard_report(); | 632 | send_keyboard_report(); |
| 633 | wait_ms(100); | ||
| 632 | del_key(KC_NUMLOCK); | 634 | del_key(KC_NUMLOCK); |
| 633 | send_keyboard_report(); | 635 | send_keyboard_report(); |
| 634 | } | 636 | } |
| @@ -639,6 +641,7 @@ void register_code(uint8_t code) | |||
| 639 | #endif | 641 | #endif |
| 640 | add_key(KC_SCROLLLOCK); | 642 | add_key(KC_SCROLLLOCK); |
| 641 | send_keyboard_report(); | 643 | send_keyboard_report(); |
| 644 | wait_ms(100); | ||
| 642 | del_key(KC_SCROLLLOCK); | 645 | del_key(KC_SCROLLLOCK); |
| 643 | send_keyboard_report(); | 646 | send_keyboard_report(); |
| 644 | } | 647 | } |
