OSDN Git Service

Fix min & max sampling rate for on-change sensors
authorPatrick Porlan <patrick.porlan@intel.com>
Thu, 18 Dec 2014 16:12:39 +0000 (17:12 +0100)
committerPatrick Porlan <patrick.porlan@intel.com>
Thu, 18 Dec 2014 16:44:09 +0000 (17:44 +0100)
commit45c968846622ba2f3467bd2a5b481f1de424ee8c
tree276c2eef8293e1c5ed0ce8ec0e4d0e4a867ca3b7
parent4d8f316c95b604307fb11041632c77857c17b097
Fix min & max sampling rate for on-change sensors

The BMG160 thermometer was adopting the gyro min sampling rate of
100, which is kind of wasteful in terms of acquisition thread
activity. Same for BMC150 therm (using 15.6 Hz min). The ALS was
probably causing more thread switches than necessary, even if in
the end no event was being reported to Android if the value was
the same as the last measured one.

So, say it's fine to use on change sensors as a frequency as low
as 0.1 Hz, and report 5 Hz the maximum rate we can handle.

Change-Id: I7bd4a8ef97bffd5a0deb17cf581286214ce8a1a4
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
description.c