1
0

Make bootmagic.c code portable (_delay_ms -> wait_ms).

This commit is contained in:
flabbergast 2015-10-12 09:40:06 +01:00
parent cd7f30299a
commit d9652cdf99

View File

@ -1,6 +1,6 @@
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <util/delay.h> #include "wait.h"
#include "matrix.h" #include "matrix.h"
#include "bootloader.h" #include "bootloader.h"
#include "debug.h" #include "debug.h"
@ -21,7 +21,7 @@ void bootmagic(void)
/* do scans in case of bounce */ /* do scans in case of bounce */
print("bootmagic scan: ... "); print("bootmagic scan: ... ");
uint8_t scan = 100; uint8_t scan = 100;
while (scan--) { matrix_scan(); _delay_ms(10); } while (scan--) { matrix_scan(); wait_ms(10); }
print("done.\n"); print("done.\n");
/* bootmagic skip */ /* bootmagic skip */