]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - tmk_core/common/bootmagic.c
Chibios/usb_main: rename a variable for clarity.
[max/tmk_keyboard.git] / tmk_core / common / bootmagic.c
index d6684b2d57405c24c116a00f38538aecf28a8cbe..08241f7de3d360ea7a0904ff305b7045d69fffe1 100644 (file)
@@ -1,6 +1,6 @@
 #include <stdint.h>
 #include <stdbool.h>
-#include <util/delay.h>
+#include "wait.h"
 #include "matrix.h"
 #include "bootloader.h"
 #include "debug.h"
@@ -10,6 +10,7 @@
 #include "eeconfig.h"
 #include "bootmagic.h"
 
+keymap_config_t keymap_config;
 
 void bootmagic(void)
 {
@@ -21,7 +22,7 @@ void bootmagic(void)
     /* do scans in case of bounce */
     print("bootmagic scan: ... ");
     uint8_t scan = 100;
-    while (scan--) { matrix_scan(); _delay_ms(10); }
+    while (scan--) { matrix_scan(); wait_ms(10); }
     print("done.\n");
 
     /* bootmagic skip */