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

srf08: use xtimer

parent c9aa2807
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include "hwtimer.h" #include "xtimer.h"
#include "srf08.h" #include "srf08.h"
#include "periph/i2c.h" #include "periph/i2c.h"
...@@ -116,7 +116,7 @@ int srf08_get_distances(srf08_t *dev, uint16_t *range_array, int num_echos, srf0 ...@@ -116,7 +116,7 @@ int srf08_get_distances(srf08_t *dev, uint16_t *range_array, int num_echos, srf0
return -2; return -2;
} }
hwtimer_wait(HWTIMER_TICKS(70000)); xtimer_usleep(70000);
/* read all echo buffers */ /* read all echo buffers */
for (register_location = 2; register_location < max_reg_no_read; for (register_location = 2; register_location < max_reg_no_read;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment