summaryrefslogtreecommitdiffstats
path: root/keyboards/planck/ez/ez.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-10-25 06:07:34 +0100
committerGitHub <noreply@github.com>2022-10-24 22:07:34 -0700
commit4f63be4d1d44c7d4a154c14a982186e0ca27ceba (patch)
treefd34d11c86a2d95dc182098650102229fc30e2fd /keyboards/planck/ez/ez.c
parente863c431f61565f41cf28fa7e981bdb3cba4f642 (diff)
Remove some assumptions on sequential keycode ranges (#18838)
Diffstat (limited to 'keyboards/planck/ez/ez.c')
-rw-r--r--keyboards/planck/ez/ez.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c
index 01157e106b..84eb725c90 100644
--- a/keyboards/planck/ez/ez.c
+++ b/keyboards/planck/ez/ez.c
@@ -318,8 +318,15 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
#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_LAYER_TAP ... QK_LAYER_TAP_MAX:
+ case QK_TO ... QK_TO_MAX:
+ case QK_MOMENTARY ... QK_MOMENTARY_MAX:
+ case QK_DEF_LAYER ... QK_DEF_LAYER_MAX:
+ case QK_TOGGLE_LAYER ... QK_TOGGLE_LAYER_MAX:
+ case QK_ONE_SHOT_LAYER ... QK_ONE_SHOT_LAYER_MAX:
+ case QK_LAYER_TAP_TOGGLE ... QK_LAYER_TAP_TOGGLE_MAX:
+ case QK_LAYER_MOD ... QK_LAYER_MOD_MAX:
+ case QK_ONE_SHOT_MOD ... QK_ONE_SHOT_MOD_MAX:
case QK_MOD_TAP ... QK_MOD_TAP_MAX:
case AU_ON ... MUV_DE:
case QK_BOOT: