summaryrefslogtreecommitdiffstats
path: root/users/drashna/drashna.c
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-09-29 11:16:11 -0700
committerGitHub <noreply@github.com>2021-09-29 11:16:11 -0700
commit1e54796f0cf469e2c1fdd880cc288b04e7b83985 (patch)
treebdcc76205faf3e7ec325fd73d36e932cdc0441da /users/drashna/drashna.c
parent929d959ef9e2572b4744930d86e322936e6e1f0e (diff)
[Keymap] Update to Drashna Code (#14644)
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();