From d9652cdf992baaa066f75866689ac50d2b37cb9f Mon Sep 17 00:00:00 2001 From: flabbergast Date: Mon, 12 Oct 2015 09:40:06 +0100 Subject: [PATCH] Make bootmagic.c code portable (_delay_ms -> wait_ms). --- tmk_core/common/bootmagic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmk_core/common/bootmagic.c b/tmk_core/common/bootmagic.c index d6684b2d..698693cb 100644 --- a/tmk_core/common/bootmagic.c +++ b/tmk_core/common/bootmagic.c @@ -1,6 +1,6 @@ #include #include -#include +#include "wait.h" #include "matrix.h" #include "bootloader.h" #include "debug.h" @@ -21,7 +21,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 */ -- 2.45.2