diff --git a/tests/driver_mfrc522/Makefile b/tests/driver_mfrc522/Makefile index aa7119194378..55f96e3f24df 100644 --- a/tests/driver_mfrc522/Makefile +++ b/tests/driver_mfrc522/Makefile @@ -1,7 +1,8 @@ include ../Makefile.tests_common USEMODULE += mfrc522 -USEMODULE += xtimer +USEMODULE += ztimer +USEMODULE += ztimer_msec USEMODULE += shell CFLAGS += -DMFRC522_SELF_TEST_FUNCTION diff --git a/tests/driver_mfrc522/main.c b/tests/driver_mfrc522/main.c index c6dce6d6d076..61d1ee8a880f 100644 --- a/tests/driver_mfrc522/main.c +++ b/tests/driver_mfrc522/main.c @@ -18,7 +18,7 @@ #include #include -#include "xtimer.h" +#include "ztimer.h" #include "shell.h" #include "mfrc522.h" @@ -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);