summaryrefslogtreecommitdiffstats
path: root/keyboards/wilba_tech/wt60_xt/wt60_xt.c
diff options
context:
space:
mode:
authorWilba <Jason.S.Williams@gmail.com>2021-04-16 03:19:41 +1000
committerGitHub <noreply@github.com>2021-04-15 13:19:41 -0400
commita8c013a145bf52a28b88154c9d1445615f7e984b (patch)
tree52ea610922343558d2a27121c46593911d9c9b8b /keyboards/wilba_tech/wt60_xt/wt60_xt.c
parenta69616c45ce30463b0025c48d72d8cac0350e639 (diff)
Fix audio on WT60-XT (#12526)
Diffstat (limited to 'keyboards/wilba_tech/wt60_xt/wt60_xt.c')
-rw-r--r--keyboards/wilba_tech/wt60_xt/wt60_xt.c47
1 files changed, 22 insertions, 25 deletions
diff --git a/keyboards/wilba_tech/wt60_xt/wt60_xt.c b/keyboards/wilba_tech/wt60_xt/wt60_xt.c
index 1f4cb96987..f575b032df 100644
--- a/keyboards/wilba_tech/wt60_xt/wt60_xt.c
+++ b/keyboards/wilba_tech/wt60_xt/wt60_xt.c
@@ -65,32 +65,29 @@ bool led_update_kb(led_t led_state) {
wait_ms(10); // gets rid of tick
- if (!is_playing_notes())
+ if (led_state.caps_lock && !old_led_state.caps_lock)
{
- if (led_state.caps_lock && !old_led_state.caps_lock)
- {
- PLAY_SONG(tone_caps_on);
- }
- else if (!led_state.caps_lock && old_led_state.caps_lock)
- {
- PLAY_SONG(tone_caps_off);
- }
- else if (led_state.num_lock && !old_led_state.num_lock)
- {
- PLAY_SONG(tone_numlk_on);
- }
- else if (!led_state.num_lock && old_led_state.num_lock)
- {
- PLAY_SONG(tone_numlk_off);
- }
- else if (led_state.scroll_lock && !old_led_state.scroll_lock)
- {
- PLAY_SONG(tone_scroll_on);
- }
- else if (!led_state.scroll_lock && old_led_state.scroll_lock)
- {
- PLAY_SONG(tone_scroll_off);
- }
+ PLAY_SONG(tone_caps_on);
+ }
+ else if (!led_state.caps_lock && old_led_state.caps_lock)
+ {
+ PLAY_SONG(tone_caps_off);
+ }
+ else if (led_state.num_lock && !old_led_state.num_lock)
+ {
+ PLAY_SONG(tone_numlk_on);
+ }
+ else if (!led_state.num_lock && old_led_state.num_lock)
+ {
+ PLAY_SONG(tone_numlk_off);
+ }
+ else if (led_state.scroll_lock && !old_led_state.scroll_lock)
+ {
+ PLAY_SONG(tone_scroll_on);
+ }
+ else if (!led_state.scroll_lock && old_led_state.scroll_lock)
+ {
+ PLAY_SONG(tone_scroll_off);
}
old_led_state = led_state;