浏览代码

Added default case to process_record_user

I tried using process_record_user and if I had to add the default case for it to compile.
kamisamamizu 7 年之前
父节点
当前提交
eab41f7b38
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      docs/custom_quantum_functions.md

+ 2 - 0
docs/custom_quantum_functions.md

@@ -60,6 +60,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
         PLAY_NOTE_ARRAY(tone_qwerty);
       }
       return true; // Let QMK send the enter press/release events
+    default:
+      return true; // Process all other keycodes normally
   }
 }
 ```