diff --git a/tests/driver_mag3110/Makefile b/tests/driver_mag3110/Makefile index 045b116648..7d376ea1f1 100644 --- a/tests/driver_mag3110/Makefile +++ b/tests/driver_mag3110/Makefile @@ -4,7 +4,7 @@ include ../Makefile.tests_common FEATURES_REQUIRED = periph_i2c USEMODULE += mag3110 -USEMODULE += vtimer +USEMODULE += xtimer ifneq (,$(TEST_MAG3110_I2C)) CFLAGS += -DTEST_MAG3110_I2C=$(TEST_MAG3110_I2C) diff --git a/tests/driver_mag3110/main.c b/tests/driver_mag3110/main.c index 57bba7c4ab..603d12bc2a 100644 --- a/tests/driver_mag3110/main.c +++ b/tests/driver_mag3110/main.c @@ -29,7 +29,7 @@ #include -#include "vtimer.h" +#include "xtimer.h" #include "mag3110.h" #define SLEEP (1000 * 1000U) @@ -64,7 +64,7 @@ int main(void) } while (1) { - vtimer_usleep(SLEEP); + xtimer_usleep(SLEEP); mag3110_read(&dev, &x, &y, &z, &status); printf("Field strength: X: %d Y: %d Z: %d S: %2x\n", x, y, z, status); mag3110_read_dtemp(&dev, &temp);