Change auto brightness change logic.
authorsh.pi <sh.pi@samsung.com>
Fri, 31 May 2013 10:20:30 +0000 (19:20 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Fri, 6 Sep 2013 07:35:04 +0000 (07:35 +0000)
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

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;