浏览代码

Fix for issue https://github.com/qmk/qmk_firmware/issues/1751

Jody Foo 7 年之前
父节点
当前提交
f4949fdd32
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      quantum/process_keycode/process_key_lock.c

+ 1 - 1
quantum/process_keycode/process_key_lock.c

@@ -51,7 +51,7 @@ uint64_t key_state[4] = { 0x0, 0x0, 0x0, 0x0 };
 bool watching = false;
 
 // Translate any OSM keycodes back to their unmasked versions.
-uint16_t inline translate_keycode(uint16_t keycode) {
+static inline uint16_t translate_keycode(uint16_t keycode) {
     if (keycode > QK_ONE_SHOT_MOD && keycode <= QK_ONE_SHOT_MOD_MAX) {
         return keycode ^ QK_ONE_SHOT_MOD;
     } else {