[Keymap] Update to Drashna Code (#14644)

This commit is contained in:
Drashna Jaelre 2021-09-29 11:16:11 -07:00 committed by GitHub
parent 929d959ef9
commit 1e54796f0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 180 additions and 51 deletions

View file

@ -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();