From 30e7b6da74eff79b4ea71243587e94514ced9a7f Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Wed, 4 Nov 2020 23:00:49 +0100 Subject: [PATCH] drivers/itg320x: convert to xtimer_msleep() --- drivers/itg320x/itg320x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/itg320x/itg320x.c b/drivers/itg320x/itg320x.c index d82b002e35..a56b3c659c 100644 --- a/drivers/itg320x/itg320x.c +++ b/drivers/itg320x/itg320x.c @@ -221,7 +221,7 @@ int itg320x_power_up(itg320x_t *dev) EXEC_RET(_update_reg(dev, ITG320X_REG_PWR_MGM, ITG320X_REG_PWR_MGM_SLEEP, 0)); /* wait 20 ms after power-up */ - xtimer_usleep(20 * US_PER_MS); + xtimer_msleep(20); return ITG320X_OK; } @@ -238,7 +238,7 @@ static int _reset(itg320x_t *dev) EXEC_RET(_update_reg(dev, ITG320X_REG_PWR_MGM, ITG320X_REG_PWR_MGM_H_RESET, 1)); /* wait 20 ms after reset */ - xtimer_usleep(20 * US_PER_MS); + xtimer_msleep(20); return ITG320X_OK; }