summaryrefslogtreecommitdiffstats
path: root/common/bootmagic.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-03-11 07:10:56 +0100
committertmk <nobody@nowhere>2013-03-11 07:10:56 +0100
commitd055e0633e36e97802d60554f6002e47021ba5fd (patch)
treed129174dd33232723fbd60795ccb5132701ad51f /common/bootmagic.c
parent1d5bbb55f28eb2e9eff0543753b8cb85f3b94282 (diff)
downloadqmk_firmware-d055e0633e36e97802d60554f6002e47021ba5fd.tar.gz
qmk_firmware-d055e0633e36e97802d60554f6002e47021ba5fd.tar.xz
Fix debug parameter setting in eeconfig
Diffstat (limited to 'common/bootmagic.c')
-rw-r--r--common/bootmagic.c4
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 @@
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();
}