Просмотр исходного кода

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

master
flabbergast 8 лет назад
Родитель
Сommit
d9652cdf99
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      tmk_core/common/bootmagic.c

+ 2
- 2
tmk_core/common/bootmagic.c Просмотреть файл

#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"
/* 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 */