summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/planck/ez/config.h1
-rw-r--r--keyboards/planck/ez/ez.c16
2 files changed, 17 insertions, 0 deletions
diff --git a/keyboards/planck/ez/config.h b/keyboards/planck/ez/config.h
index 59385eb16b..4bde8ce259 100644
--- a/keyboards/planck/ez/config.h
+++ b/keyboards/planck/ez/config.h
@@ -140,6 +140,7 @@
#define RGB_MATRIX_KEYPRESSES
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
+
#define RGB_MATRIX_LED_PROCESS_LIMIT 5
#define RGB_MATRIX_LED_FLUSH_LIMIT 26
diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c
index a6995533c9..6e250d4d76 100644
--- a/keyboards/planck/ez/ez.c
+++ b/keyboards/planck/ez/ez.c
@@ -150,3 +150,19 @@ layer_state_t layer_state_set_kb(layer_state_t state) {
}
return state;
}
+
+#ifdef AUDIO_ENABLE
+bool music_mask_kb(uint16_t keycode) {
+ switch (keycode) {
+ case QK_LAYER_TAP ... QK_ONE_SHOT_LAYER_MAX:
+ case QK_LAYER_TAP_TOGGLE ... QK_LAYER_MOD_MAX:
+ case QK_MOD_TAP ... QK_MOD_TAP_MAX:
+ case AU_ON ... MUV_DE:
+ case RESET:
+ case EEP_RST:
+ return false;
+ default:
+ return music_mask_user(keycode);
+ }
+}
+#endif