From: flabbergast Date: Mon, 12 Oct 2015 08:40:06 +0000 (+0100) Subject: Make bootmagic.c code portable (_delay_ms -> wait_ms). X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=d9652cdf992baaa066f75866689ac50d2b37cb9f;p=max%2Ftmk_keyboard.git Make bootmagic.c code portable (_delay_ms -> wait_ms). --- 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 */