瀏覽代碼

#1792 added in waits from tmk for locking switches

fixes #1792
Joe Martin 7 年之前
父節點
當前提交
b91ffba4be
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tmk_core/common/action.c

+ 3 - 0
tmk_core/common/action.c

@@ -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();
     }