Skip to content

Commit

Permalink
fixup! use ztimer
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikVE committed Jan 16, 2022
1 parent 963677c commit fd81432
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/driver_mfrc522/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
include ../Makefile.tests_common

USEMODULE += mfrc522
USEMODULE += xtimer
USEMODULE += ztimer
USEMODULE += ztimer_msec
USEMODULE += shell

CFLAGS += -DMFRC522_SELF_TEST_FUNCTION
Expand Down
4 changes: 2 additions & 2 deletions tests/driver_mfrc522/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <stdlib.h>
#include <string.h>

#include "xtimer.h"
#include "ztimer.h"
#include "shell.h"

#include "mfrc522.h"
Expand Down Expand Up @@ -78,7 +78,7 @@ int scan_uid(int argc, char **argv)
printf("Repeat scan (%d/20) ...\n", i + 1);
}
success_read = get_uid(&uid, true);
xtimer_usleep(500 * 1000);
ztimer_sleep(ZTIMER_MSEC, 500);
i++;
} while (!success_read && i < 20);

Expand Down

0 comments on commit fd81432

Please sign in to comment.