Parcourir la source

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

tags/v2.9
flabbergast il y a 8 ans
Parent
révision
d9652cdf99
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      tmk_core/common/bootmagic.c

+ 2
- 2
tmk_core/common/bootmagic.c Voir le fichier

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

Chargement…
Annuler
Enregistrer