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:
parent
4e8b0d541f
commit
908833a44e
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user