OSDN Git Service

Do not update calibsense if prop read fails
authorarun <arun.radhakrishnan@intel.com>
Thu, 29 May 2014 21:29:51 +0000 (14:29 -0700)
committersuyyala <sridhar.uyyala@intel.com>
Thu, 12 Jun 2014 04:15:14 +0000 (21:15 -0700)
commit96575ae85ba64e17a439ebc051bc4a006c1ddbac
treef4cf39e8bcd50c5a139f3904f076c97be323d4e2
parent05610d964b10d99230311d226c925e87a0d031d6
Do not update calibsense if prop read fails

 It was observed that in case the android prop read fails,
 we write a 0 value(typically happens in case the property variable
 not present)into the sysfs variable. This caused the resulting ALS
 output to be 0, added a check to filter that condition. Now in case
 the read from the android property fails, we just keep the default
 value for the calibsense variable.

 Issue:GMIN-671

Change-Id: Ifd65f0268dfa345ecf8cd6d40255c1a1fd52a03c
Signed-off-by: suyyala <sridhar.uyyala@intel.com>
enumeration.c