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

tests: driver_pir: vtimer -> xtimer

parent ec01c9de
No related branches found
No related tags found
Loading
......@@ -12,7 +12,7 @@ ifneq (,$(filter arduino-due,$(BOARD)))
endif
USEMODULE += pir
USEMODULE += vtimer
USEMODULE += xtimer
ifneq (,$(PIR_GPIO))
CFLAGS += -DPIR_GPIO=$(PIR_GPIO)
......
......@@ -25,7 +25,7 @@
#include <stdio.h>
#include "thread.h"
#include "vtimer.h"
#include "xtimer.h"
#include "pir.h"
char pir_handler_stack[THREAD_STACKSIZE_MAIN];
......@@ -75,7 +75,7 @@ int main(void)
puts("Printing sensor state every second.");
while (1) {
printf("Status: %s\n", pir_get_status(&dev) == PIR_STATUS_LO ? "lo" : "hi");
vtimer_usleep(1000 * 1000);
xtimer_usleep(1000 * 1000);
}
#else
thread_create(
......
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