From 56763a5cc484f9ee6f777b4db712834e1757fe1c Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Wed, 4 Nov 2020 23:00:49 +0100 Subject: [PATCH] drivers/ph_oem: convert to xtimer_msleep() --- drivers/ph_oem/ph_oem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ph_oem/ph_oem.c b/drivers/ph_oem/ph_oem.c index c948a76c0c..e00b4805e8 100644 --- a/drivers/ph_oem/ph_oem.c +++ b/drivers/ph_oem/ph_oem.c @@ -270,7 +270,7 @@ static int _new_reading_available(const ph_oem_t *dev) i2c_release(DEV_I2C); return PH_OEM_READ_ERR; } - xtimer_usleep(20 * US_PER_MS); + xtimer_msleep(20); } while (new_reading_available == 0); /* need to manually reset register back to 0x00 */