aboutsummaryrefslogtreecommitdiff
path: root/quantum/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/keyboard.c')
-rw-r--r--quantum/keyboard.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/quantum/keyboard.c b/quantum/keyboard.c
index c1a6d444a5..bf4890a51d 100644
--- a/quantum/keyboard.c
+++ b/quantum/keyboard.c
@@ -648,24 +648,8 @@ void quantum_task(void) {
if (!is_keyboard_master()) return;
#endif
-#if defined(AUDIO_ENABLE) && defined(AUDIO_INIT_DELAY)
- // There are some tasks that need to be run a little bit
- // after keyboard startup, or else they will not work correctly
- // because of interaction with the USB device state, which
- // may still be in flux...
- //
- // At the moment the only feature that needs this is the
- // startup song.
- static bool delayed_tasks_run = false;
- static uint16_t delayed_task_timer = 0;
- if (!delayed_tasks_run) {
- if (!delayed_task_timer) {
- delayed_task_timer = timer_read();
- } else if (timer_elapsed(delayed_task_timer) > 300) {
- audio_startup();
- delayed_tasks_run = true;
- }
- }
+#ifdef AUDIO_ENABLE
+ audio_task();
#endif
#if defined(AUDIO_ENABLE) && !defined(NO_MUSIC_MODE)