summaryrefslogtreecommitdiffstats
path: root/users/drashna/drashna.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/drashna/drashna.c')
-rw-r--r--users/drashna/drashna.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/users/drashna/drashna.c b/users/drashna/drashna.c
index 3423e379a1..871136c137 100644
--- a/users/drashna/drashna.c
+++ b/users/drashna/drashna.c
@@ -73,11 +73,6 @@ void matrix_init_user(void) {
matrix_init_secret();
matrix_init_keymap();
-#if defined(AUDIO_ENABLE) && defined(SPLIT_KEYBOARD)
- if (!is_keyboard_master()) {
- stop_all_notes();
- }
-#endif
}
__attribute__((weak)) void keyboard_post_init_keymap(void) {}
@@ -227,16 +222,15 @@ bool hasAllBitsInMask(uint8_t value, uint8_t mask) {
}
#ifdef SPLIT_KEYBOARD
-# if defined(AUDIO_ENABLE)
-bool delayed_tasks_run = false;
-# endif
__attribute__((weak)) void matrix_slave_scan_keymap(void) {}
void matrix_slave_scan_user(void) {
# if defined(AUDIO_ENABLE)
# if !defined(NO_MUSIC_MODE)
music_task();
# endif
+# ifdef AUDIO_INIT_DELAY
if (!is_keyboard_master()) {
+ static bool delayed_tasks_run = false;
static uint16_t delayed_task_timer = 0;
if (!delayed_tasks_run) {
if (!delayed_task_timer) {
@@ -247,6 +241,7 @@ void matrix_slave_scan_user(void) {
}
}
}
+# endif
# endif
# ifdef SEQUENCER_ENABLE
sequencer_task();