HCoop
/
jackhill
/
qmk
/
firmware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5450316
)
[Keyboard] Fix compile issues for OLKB Default keymaps (#6751)
0.7.16
author
Drashna Jaelre
<drashna@live.com>
Tue, 17 Sep 2019 23:50:04 +0000
(16:50 -0700)
committer
fauxpark
<fauxpark@gmail.com>
Tue, 17 Sep 2019 23:50:04 +0000
(09:50 +1000)
keyboards/planck/keymaps/default/keymap.c
patch
|
blob
|
blame
|
history
diff --git
a/keyboards/planck/keymaps/default/keymap.c
b/keyboards/planck/keymaps/default/keymap.c
index
e3818fe
..
3d44088
100644
(file)
--- 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: