From: sh.pi Date: Fri, 31 May 2013 10:20:30 +0000 (+0900) Subject: Change auto brightness change logic. X-Git-Tag: submit/tizen_ivi_release/20140401.030119~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F63%2F15163%2F1;p=platform%2Fcore%2Fsystem%2Fsystem-server.git Change auto brightness change logic. 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 --- diff --git a/src/display/lsensor.c b/src/display/lsensor.c index f8e6599..8efdaa7 100644 --- a/src/display/lsensor.c +++ b/src/display/lsensor.c @@ -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;