aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/planck
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2019-09-17 16:50:04 -0700
committerfauxpark <fauxpark@gmail.com>2019-09-18 09:50:04 +1000
commit37c29961379f39dd60f173b4b82df41a4f80b078 (patch)
tree1cac5bb20a0485d6b29f34bbd7c9e1b84fd9b1cd /keyboards/planck
parent54503168c93b6322975e3144c929cffe6c74d36c (diff)
downloadfirmware-37c29961379f39dd60f173b4b82df41a4f80b078.tar.gz
firmware-37c29961379f39dd60f173b4b82df41a4f80b078.tar.bz2
firmware-37c29961379f39dd60f173b4b82df41a4f80b078.zip
[Keyboard] Fix compile issues for OLKB Default keymaps (#6751)
Diffstat (limited to 'keyboards/planck')
-rw-r--r--keyboards/planck/keymaps/default/keymap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/keyboards/planck/keymaps/default/keymap.c b/keyboards/planck/keymaps/default/keymap.c
index e3818fec7..3d44088bb 100644
--- a/keyboards/planck/keymaps/default/keymap.c
+++ b/keyboards/planck/keymaps/default/keymap.c
@@ -292,7 +292,9 @@ void encoder_update(bool clockwise) {
void dip_switch_update_user(uint8_t index, bool active) {
switch (index) {
case 0: {
+#ifdef AUDIO_ENABLE
static bool play_sound = false;
+#endif
if (active) {
#ifdef AUDIO_ENABLE
if (play_sound) { PLAY_SONG(plover_song); }
@@ -304,7 +306,9 @@ void dip_switch_update_user(uint8_t index, bool active) {
#endif
layer_off(_ADJUST);
}
+#ifdef AUDIO_ENABLE
play_sound = true;
+#endif
break;
}
case 1: