]> git.donarmstrong.com Git - tmk_firmware.git/blobdiff - common/bootmagic.c
Merge branch 'remote_wakeup'
[tmk_firmware.git] / common / bootmagic.c
index 46fbc180a468a372b1b11614cb90240a094aca12..388099e2e63acf4d7c84d065514a5d0371134dfe 100644 (file)
 
 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();
     }