]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Added default case to process_record_user
authorkamisamamizu <pacouniversitario69@gmail.com>
Sat, 16 Dec 2017 17:25:16 +0000 (18:25 +0100)
committerJack Humbert <jack.humb@gmail.com>
Sun, 17 Dec 2017 16:52:06 +0000 (11:52 -0500)
I tried using process_record_user and if I had to add the default case for it to compile.

docs/custom_quantum_functions.md

index 928dccc9c349717a120e4a534ceeefee77bb4c06..3df1d73a28028916a3a00f9e09b880118cac2e71 100644 (file)
@@ -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
   }
 }
 ```