tests/driver_hih6130: replace SLEEP define
The SLEEP define collides with an Atmel header file. Rename the define to resolve the conflict.
This commit is contained in:
parent
d92e2b25ac
commit
252f22bfe2
@ -32,7 +32,7 @@
|
|||||||
#include "xtimer.h"
|
#include "xtimer.h"
|
||||||
#include "hih6130.h"
|
#include "hih6130.h"
|
||||||
|
|
||||||
#define SLEEP (100 * 1000U)
|
#define SLEEP_USEC (100 * 1000U)
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
@ -52,7 +52,7 @@ int main(void)
|
|||||||
float integral = 0.f;
|
float integral = 0.f;
|
||||||
float fractional;
|
float fractional;
|
||||||
|
|
||||||
xtimer_usleep(SLEEP);
|
xtimer_usleep(SLEEP_USEC);
|
||||||
|
|
||||||
status = hih6130_get_humidity_temperature_float(&dev, &hum, &temp);
|
status = hih6130_get_humidity_temperature_float(&dev, &hum, &temp);
|
||||||
if (status < 0) {
|
if (status < 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user