OSDN Git Service

STPK-1429 Support "on change" event firing
authorPatrick Porlan <patrick.porlan@intel.com>
Wed, 25 Jun 2014 12:34:43 +0000 (14:34 +0200)
committerPatrick Porlan <patrick.porlan@intel.com>
Thu, 26 Jun 2014 13:30:56 +0000 (15:30 +0200)
commitdece0aef70323691d8d8c8f2a215e8d3086b7b17
tree1ebab28cc831d1fb8e7c367c62ff7727d6a69e1b
parent5e5841987c50d6a8a0c1a4f418199996cdc31abd
STPK-1429 Support "on change" event firing

The Android documentation states that ALS and temperature
sensors are "on change" rather than continuously firing
sensors. So, for these types, make note of the last returned
lux or temperature reading, and drop the event that we're
about to generate if it is identical to the last returned one.

Issue: STPK-1429

Change-Id: I4c07da6555727f905e25e2e3bb7cef975af4e4c7
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
common.h
control.c
transform.c