Skip to content
Snippets Groups Projects
Commit 2199aa3d authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

tests: driver_mag3110: vtimer -> xtimer

parent 0438fe91
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -29,7 +29,7 @@
#include <stdio.h>
#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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment