diff options
Diffstat (limited to 'common/bootmagic.c')
| -rw-r--r-- | common/bootmagic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/bootmagic.c b/common/bootmagic.c index 46fbc180a..388099e2e 100644 --- a/common/bootmagic.c +++ b/common/bootmagic.c | |||
| @@ -10,12 +10,12 @@ | |||
| 10 | 10 | ||
| 11 | void bootmagic(void) | 11 | void bootmagic(void) |
| 12 | { | 12 | { |
| 13 | if (!BOOTMAGIC_IS_ENABLED()) { return; } | ||
| 14 | |||
| 13 | /* do scans in case of bounce */ | 15 | /* do scans in case of bounce */ |
| 14 | uint8_t scan = 100; | 16 | uint8_t scan = 100; |
| 15 | while (scan--) { matrix_scan(); _delay_ms(1); } | 17 | while (scan--) { matrix_scan(); _delay_ms(1); } |
| 16 | 18 | ||
| 17 | if (!BOOTMAGIC_IS_ENABLE()) { return; } | ||
| 18 | |||
| 19 | if (bootmagic_scan_keycode(BOOTMAGIC_BOOTLOADER_KEY)) { | 19 | if (bootmagic_scan_keycode(BOOTMAGIC_BOOTLOADER_KEY)) { |
| 20 | bootloader_jump(); | 20 | bootloader_jump(); |
| 21 | } | 21 | } |
