Change auto brightness change logic. 63/15163/1
authorsh.pi <sh.pi@samsung.com>
Fri, 31 May 2013 10:20:30 +0000 (19:20 +0900)
committerKrzysztof Sasiak <k.sasiak@samsung.com>
Thu, 16 Jan 2014 14:30:22 +0000 (15:30 +0100)
Brightness is changed frequently when finger is moving on light sensor.
Now brightness is changed only when values of brightness about 4 times is the same.

Change-Id: Iceefce7bf1877e1406fd39793b7f1d333715b6fe
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
src/display/lsensor.c

index f8e6599..8efdaa7 100644 (file)
@@ -72,6 +72,7 @@ static bool alc_handler(void* data)
                                _I("fail to load light data : %d",      (int)light_data.values[0]);
                                fault_count++;
                        } else {
+                               fault_count = 0;
                                int tmp_value;
                                int cmd;
                                int ret;