sdm710-common: Fix proximity and light sensors
* replace proprietary sensor types with standard ones Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
This commit is contained in:
parent
593b28605f
commit
8fbdb829a2
1 changed files with 10 additions and 0 deletions
|
@ -125,6 +125,16 @@ Return<void> Sensors::getSensorsList(getSensorsList_cb _hidl_cb) {
|
|||
SensorInfo *dst = &out[i];
|
||||
|
||||
convertFromSensor(*src, dst);
|
||||
|
||||
if (dst->typeAsString == "qti.sensor.wise_light") {
|
||||
dst->type = SensorType::LIGHT;
|
||||
dst->typeAsString = "";
|
||||
}
|
||||
if (dst->typeAsString == "qti.sensor.proximity_fake") {
|
||||
dst->type = SensorType::PROXIMITY;
|
||||
dst->typeAsString = "";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
_hidl_cb(out);
|
||||
|
|
Loading…
Reference in a new issue