1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/ad7746: convert to xtimer_msleep()

This commit is contained in:
Benjamin Valentin 2020-11-04 23:00:49 +01:00
parent 4e8b0d541f
commit 908833a44e

View File

@ -382,7 +382,7 @@ static int _read_voltage_temp(ad7746_t *dev, int *value, ad7746_vt_mode_t mode)
/* if a mode change is needed wait for a conversion cycle and flush
* the first sample in order to get a stable output. Took from the Linux
* driver implementation */
xtimer_usleep(_vt_sr_times[dev->params.vt_sample_rate] * US_PER_MS);
xtimer_msleep(_vt_sr_times[dev->params.vt_sample_rate]);
_read_raw_ch(dev, AD7746_READ_VT_CH, &raw);
}