From 24c742a5e8ddd55c45ce9f1917b0cb237d4bf721 Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Sat, 17 Jun 2023 10:26:37 -0400 Subject: [PATCH] add audio enable condition to abhixec's planck keymap --- keyboards/planck/keymaps/abhixec/keymap.c | 4 +++- keyboards/planck/keymaps/abhixec/rules.mk | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/keyboards/planck/keymaps/abhixec/keymap.c b/keyboards/planck/keymaps/abhixec/keymap.c index f3ce9f189135..c46682d7caea 100644 --- a/keyboards/planck/keymaps/abhixec/keymap.c +++ b/keyboards/planck/keymaps/abhixec/keymap.c @@ -15,8 +15,10 @@ */ #include QMK_KEYBOARD_H -#include "muse.h" +#ifdef AUDIO_ENABLE +# include "muse.h" +#endif enum planck_layers { _QWERTY, diff --git a/keyboards/planck/keymaps/abhixec/rules.mk b/keyboards/planck/keymaps/abhixec/rules.mk index dcf16bef3994..10751dc952e4 100644 --- a/keyboards/planck/keymaps/abhixec/rules.mk +++ b/keyboards/planck/keymaps/abhixec/rules.mk @@ -1 +1,3 @@ -SRC += muse.c +ifeq ($(strip $(AUDIO_ENABLE)), yes) + SRC += muse.c +endif