Re: [PATCH] iio: st_sensors: Fix the sleep time for sampling

2018-11-26 Thread Jian-Hong Pan
Jonathan Cameron 於 2018年11月25日 週日 下午9:23寫道: > > On Wed, 21 Nov 2018 13:13:40 +0800 > Jian-Hong Pan wrote: > > > Denis CIOCCA 於 2018年11月20日 週二 上午3:05寫道: > > > > > > Hi Jian, > > > > > > Not clear to me why should be + instead of *. > > > > > > ODR is expressed in Hz, so (1/Hz) = period in seconds

Re: [PATCH] iio: st_sensors: Fix the sleep time for sampling

2018-11-25 Thread Jonathan Cameron
On Wed, 21 Nov 2018 13:13:40 +0800 Jian-Hong Pan wrote: > Denis CIOCCA 於 2018年11月20日 週二 上午3:05寫道: > > > > Hi Jian, > > > > Not clear to me why should be + instead of *. > > > > ODR is expressed in Hz, so (1/Hz) = period in seconds (1 sample sampling > > time) [s] > > 1000 * (1/Hz) = period in m

Re: [PATCH] iio: st_sensors: Fix the sleep time for sampling

2018-11-20 Thread Jian-Hong Pan
Denis CIOCCA 於 2018年11月20日 週二 上午3:05寫道: > > Hi Jian, > > Not clear to me why should be + instead of *. > > ODR is expressed in Hz, so (1/Hz) = period in seconds (1 sample sampling > time) [s] > 1000 * (1/Hz) = period in milliseconds (1 sample sampling time) [ms] > n * 1000 * (1/Hz) = n times peri

RE: [PATCH] iio: st_sensors: Fix the sleep time for sampling

2018-11-19 Thread Denis CIOCCA
Hi Jian, Not clear to me why should be + instead of *. ODR is expressed in Hz, so (1/Hz) = period in seconds (1 sample sampling time) [s] 1000 * (1/Hz) = period in milliseconds (1 sample sampling time) [ms] n * 1000 * (1/Hz) = n times period in milliseconds (n times sample sampling time) [ms]