X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fbootmagic.c;h=388099e2e63acf4d7c84d065514a5d0371134dfe;hb=30f9baf8985f3caa626bcd0eef8519b93f23669b;hp=46fbc180a468a372b1b11614cb90240a094aca12;hpb=de8ef18a534163b40e307418b3af603142d5d6b0;p=tmk_firmware.git diff --git a/common/bootmagic.c b/common/bootmagic.c index 46fbc18..388099e 100644 --- a/common/bootmagic.c +++ b/common/bootmagic.c @@ -10,12 +10,12 @@ void bootmagic(void) { + if (!BOOTMAGIC_IS_ENABLED()) { return; } + /* do scans in case of bounce */ uint8_t scan = 100; while (scan--) { matrix_scan(); _delay_ms(1); } - if (!BOOTMAGIC_IS_ENABLE()) { return; } - if (bootmagic_scan_keycode(BOOTMAGIC_BOOTLOADER_KEY)) { bootloader_jump(); }