]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
#1792 added in waits from tmk for locking switches
authorJoe Martin <joem@numberfour.eu>
Mon, 2 Oct 2017 12:06:52 +0000 (14:06 +0200)
committerJack Humbert <jack.humb@gmail.com>
Tue, 10 Oct 2017 17:15:41 +0000 (07:15 -1000)
fixes #1792

tmk_core/common/action.c

index 84e6615237a8f4b2b49c44a58d052e58bb382222..41de01485342a856edc11414249adc2942e36031 100644 (file)
@@ -619,6 +619,7 @@ void register_code(uint8_t code)
 #endif
         add_key(KC_CAPSLOCK);
         send_keyboard_report();
+        wait_ms(100);        
         del_key(KC_CAPSLOCK);
         send_keyboard_report();
     }
@@ -629,6 +630,7 @@ void register_code(uint8_t code)
 #endif
         add_key(KC_NUMLOCK);
         send_keyboard_report();
+        wait_ms(100);        
         del_key(KC_NUMLOCK);
         send_keyboard_report();
     }
@@ -639,6 +641,7 @@ void register_code(uint8_t code)
 #endif
         add_key(KC_SCROLLLOCK);
         send_keyboard_report();
+        wait_ms(100);        
         del_key(KC_SCROLLLOCK);
         send_keyboard_report();
     }