From e934063b1547c7e89d275938d72d23e3ef50ff47 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Fri, 14 Aug 2015 10:22:46 +0200 Subject: [PATCH] srf08: use xtimer --- drivers/srf08/srf08.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/srf08/srf08.c b/drivers/srf08/srf08.c index 72b4d75e22..d5f4f39841 100644 --- a/drivers/srf08/srf08.c +++ b/drivers/srf08/srf08.c @@ -23,7 +23,7 @@ #include #include -#include "hwtimer.h" +#include "xtimer.h" #include "srf08.h" #include "periph/i2c.h" @@ -116,7 +116,7 @@ int srf08_get_distances(srf08_t *dev, uint16_t *range_array, int num_echos, srf0 return -2; } - hwtimer_wait(HWTIMER_TICKS(70000)); + xtimer_usleep(70000); /* read all echo buffers */ for (register_location = 2; register_location < max_reg_no_read;