diff options
Diffstat (limited to 'users/drashna')
| -rw-r--r-- | users/drashna/drashna.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/users/drashna/drashna.c b/users/drashna/drashna.c index 5b6620cf3..7c280e2dd 100644 --- a/users/drashna/drashna.c +++ b/users/drashna/drashna.c | |||
| @@ -424,3 +424,19 @@ void eeconfig_init_user(void) { | |||
| 424 | userspace_config.raw = 0; | 424 | userspace_config.raw = 0; |
| 425 | eeconfig_update_user(userspace_config.raw); | 425 | eeconfig_update_user(userspace_config.raw); |
| 426 | } | 426 | } |
| 427 | |||
| 428 | void bootmagic_lite(void) { | ||
| 429 | matrix_scan(); | ||
| 430 | #if defined(DEBOUNCING_DELAY) && DEBOUNCING_DELAY > 0 | ||
| 431 | wait_ms(DEBOUNCING_DELAY * 2); | ||
| 432 | #elif defined(DEBOUNCE) && DEBOUNCE > 0 | ||
| 433 | wait_ms(DEBOUNCE * 2); | ||
| 434 | #else | ||
| 435 | wait_ms(30); | ||
| 436 | #endif | ||
| 437 | matrix_scan(); | ||
| 438 | |||
| 439 | if (matrix_get_row(BOOTMAGIC_LITE_ROW) & (1 << BOOTMAGIC_LITE_COLUMN)) { | ||
| 440 | bootloader_jump(); | ||
| 441 | } | ||
| 442 | } | ||
