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

tests: driver_hdc1000: vtimer -> xtimer

parent ada00d1c
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 += hdc1000
USEMODULE += vtimer
USEMODULE += xtimer
ifneq (,$(TEST_HDC1000_I2C))
CFLAGS += -DTEST_HDC1000_I2C=$(TEST_HDC1000_I2C)
......
......@@ -29,7 +29,7 @@
#include <stdio.h>
#include "vtimer.h"
#include "xtimer.h"
#include "hdc1000.h"
#define SLEEP (1000 * 1000U)
......@@ -55,7 +55,7 @@ int main(void)
puts("Start measure failed.");
return -1;
}
vtimer_usleep(HDC1000_CONVERSION_TIME);
xtimer_usleep(HDC1000_CONVERSION_TIME);
hdc1000_read(&dev, &rawtemp, &rawhum);
printf("Raw data T: %5i RH: %5i\n", rawtemp, rawhum);
......@@ -63,7 +63,7 @@ int main(void)
hdc1000_convert(rawtemp, rawhum, &temp, &hum);
printf("Data T: %d RH: %d\n", temp, hum);
vtimer_usleep(SLEEP);
xtimer_usleep(SLEEP);
}
......
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