mirror of
https://github.com/Evolution-X-Devices/device_oplus_mt6893-common
synced 2026-02-01 10:53:39 +00:00
RMX3031: sensors: Set correct type for light sensor
- Replace proprietary sensor type with standard one Change-Id: I3c3978321ca934ec7f66ac84052005ef8a12b3c6 Signed-off-by: ManshuTyagi <himanshut567@gmail.com>
This commit is contained in:
@@ -493,6 +493,10 @@ void HalProxy::initializeSensorList() {
|
||||
ALOGV("Loaded sensor: %s", sensor.name.c_str());
|
||||
sensor.sensorHandle = setSubHalIndex(sensor.sensorHandle, subHalIndex);
|
||||
setDirectChannelFlags(&sensor, mSubHalList[subHalIndex]);
|
||||
if (sensor.typeAsString == "android.sensor.wise_light") {
|
||||
sensor.type = SensorType::LIGHT;
|
||||
sensor.typeAsString = "";
|
||||
}
|
||||
mSensors[sensor.sensorHandle] = sensor;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user