1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00

drivers/sht2x: convert to xtimer_msleep()

This commit is contained in:
Benjamin Valentin 2020-11-04 23:00:49 +01:00
parent 9ad6b6b857
commit 1954283b34

View File

@ -93,7 +93,7 @@ int sht2x_init(sht2x_t* dev, const sht2x_params_t* params)
return SHT2X_ERR_I2C;
}
/* wait 15 ms for device to reset */
xtimer_usleep(15 * US_PER_MS);
xtimer_msleep(15);
uint8_t userreg;
uint8_t userreg2;
@ -450,7 +450,7 @@ static void sleep_during_temp_measurement(sht2x_res_t res)
amount_ms = 9;
break;
}
xtimer_usleep(amount_ms * US_PER_MS);
xtimer_msleep(amount_ms);
}
static void sleep_during_hum_measurement(sht2x_res_t resolution)
@ -471,5 +471,5 @@ static void sleep_during_hum_measurement(sht2x_res_t resolution)
amount_ms = 12;
break;
}
xtimer_usleep(amount_ms * US_PER_MS);
xtimer_msleep(amount_ms);
}