summaryrefslogtreecommitdiffstats
path: root/keyboards/planck/keymaps/default
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-10-21 07:28:18 +1100
committerGitHub <noreply@github.com>2022-10-21 07:28:18 +1100
commita7d6643e3d230f4eceb9ee0e644c25b317b354b4 (patch)
tree2f70429b43daf513ad93f01e1fc771a8e82f85d3 /keyboards/planck/keymaps/default
parentaf678521c1d786fe5578f82c2f671f5553b08dfe (diff)
Fix build failures uncovered by #18753 (#18789)
Diffstat (limited to 'keyboards/planck/keymaps/default')
-rw-r--r--keyboards/planck/keymaps/default/keymap.c4
-rw-r--r--keyboards/planck/keymaps/default/rules.mk4
2 files changed, 6 insertions, 2 deletions
diff --git a/keyboards/planck/keymaps/default/keymap.c b/keyboards/planck/keymaps/default/keymap.c
index 9d3dbccfe6..39a3315b56 100644
--- a/keyboards/planck/keymaps/default/keymap.c
+++ b/keyboards/planck/keymaps/default/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/default/rules.mk b/keyboards/planck/keymaps/default/rules.mk
index dcf16bef39..10751dc952 100644
--- a/keyboards/planck/keymaps/default/rules.mk
+++ b/keyboards/planck/keymaps/default/rules.mk
@@ -1 +1,3 @@
-SRC += muse.c
+ifeq ($(strip $(AUDIO_ENABLE)), yes)
+ SRC += muse.c
+endif