[Keyboard] Fix compile issues for OLKB Default keymaps (#6751)
This commit is contained in:
parent
54503168c9
commit
37c2996137
@ -292,7 +292,9 @@ void encoder_update(bool clockwise) {
|
|||||||
void dip_switch_update_user(uint8_t index, bool active) {
|
void dip_switch_update_user(uint8_t index, bool active) {
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0: {
|
case 0: {
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
static bool play_sound = false;
|
static bool play_sound = false;
|
||||||
|
#endif
|
||||||
if (active) {
|
if (active) {
|
||||||
#ifdef AUDIO_ENABLE
|
#ifdef AUDIO_ENABLE
|
||||||
if (play_sound) { PLAY_SONG(plover_song); }
|
if (play_sound) { PLAY_SONG(plover_song); }
|
||||||
@ -304,7 +306,9 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
|||||||
#endif
|
#endif
|
||||||
layer_off(_ADJUST);
|
layer_off(_ADJUST);
|
||||||
}
|
}
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
play_sound = true;
|
play_sound = true;
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 1:
|
case 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user