diff options
Diffstat (limited to 'users/drashna/drashna.c')
| -rw-r--r-- | users/drashna/drashna.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/users/drashna/drashna.c b/users/drashna/drashna.c index 5b9957c3d..35fa15be4 100644 --- a/users/drashna/drashna.c +++ b/users/drashna/drashna.c | |||
| @@ -81,6 +81,21 @@ bool mod_key_press (uint16_t code, uint16_t mod_code, bool pressed, uint16_t thi | |||
| 81 | return false; | 81 | return false; |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | void bootmagic_lite(void) { | ||
| 85 | matrix_scan(); | ||
| 86 | #if defined(DEBOUNCING_DELAY) && DEBOUNCING_DELAY > 0 | ||
| 87 | wait_ms(DEBOUNCING_DELAY * 2); | ||
| 88 | #elif defined(DEBOUNCE) && DEBOUNCE > 0 | ||
| 89 | wait_ms(DEBOUNCE * 2); | ||
| 90 | #else | ||
| 91 | wait_ms(30); | ||
| 92 | #endif | ||
| 93 | matrix_scan(); | ||
| 94 | if (matrix_get_row(BOOTMAGIC_LITE_ROW) & (1 << BOOTMAGIC_LITE_COLUMN)) { | ||
| 95 | bootloader_jump(); | ||
| 96 | } | ||
| 97 | } | ||
| 98 | |||
| 84 | // Add reconfigurable functions here, for keymap customization | 99 | // Add reconfigurable functions here, for keymap customization |
| 85 | // This allows for a global, userspace functions, and continued | 100 | // This allows for a global, userspace functions, and continued |
| 86 | // customization of the keymap. Use _keymap instead of _user | 101 | // customization of the keymap. Use _keymap instead of _user |
| @@ -133,6 +148,10 @@ void eeconfig_init_keymap(void) {} | |||
| 133 | // Call user matrix init, set default RGB colors and then | 148 | // Call user matrix init, set default RGB colors and then |
| 134 | // call the keymap's init function | 149 | // call the keymap's init function |
| 135 | void matrix_init_user(void) { | 150 | void matrix_init_user(void) { |
| 151 | #if !defined(BOOTMAGIC_LITE) && !defined(BOOTMAGIC_ENABLE) | ||
| 152 | bootmagic_lite(); | ||
| 153 | #endif | ||
| 154 | |||
| 136 | userspace_config.raw = eeconfig_read_user(); | 155 | userspace_config.raw = eeconfig_read_user(); |
| 137 | 156 | ||
| 138 | #ifdef BOOTLOADER_CATERINA | 157 | #ifdef BOOTLOADER_CATERINA |
