Files
OpenCellular/test
Gwendal Grignou 81d269dc00 common: lightbar: Add histeresis to prevent flickering
When ALS is enabled, if light is around one threshold (say 40 lux),
the lightbar will flicker between readings.
Add a histeresis to prevent the flickering.
The current setting is:

setting    ^
(dim)    2 | ------+---->---+
         1 |       +----<---+--->---+
(bright) 0 |                +---<---+---------
           +-------+--------+-------+--------> lux
               20       40      60

BRANCH=smaug
BUG=chrome-os-partner:44400
TEST=check in a dark room (30~40 lux) there is no flickering.
Add unit test.

Change-Id: I4018e2c2ed764abf9c9ed28e2d50a3e94a7d5f75
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/308205
2015-10-23 18:03:12 -07:00
..
2015-10-22 19:16:16 -07:00
2013-09-05 07:20:46 +00:00
2013-05-14 09:25:03 -07:00
2013-09-04 20:32:52 +00:00
2014-01-08 03:49:29 +00:00
2013-07-11 22:32:52 -07:00
2013-09-05 07:20:56 +00:00
2013-10-01 08:16:34 +00:00
2014-01-06 12:40:45 +00:00
2013-04-11 11:29:32 -07:00
2014-01-06 12:40:45 +00:00
2013-04-10 09:35:06 -07:00
2015-06-18 19:07:00 +00:00
2013-04-10 09:35:06 -07:00
2013-04-19 10:41:33 -07:00
2013-07-22 16:09:47 -07:00
2013-07-22 16:09:47 -07:00
2012-06-07 20:01:49 -07:00
2013-04-15 20:40:03 -07:00
2014-01-09 20:26:10 +00:00
2012-07-13 02:10:46 -07:00
2013-04-10 09:35:06 -07:00
2014-10-04 21:08:48 +00:00
2014-03-26 05:33:12 +00:00