Merge "Enable Magnetometer sensor injection by AIDL flag" into main

This commit is contained in:
Treehugger Robot
2023-07-26 16:53:59 +00:00
committed by Gerrit Code Review

View File

@@ -268,7 +268,7 @@ MagnetometerSensor::MagnetometerSensor(int32_t sensorHandle, ISensorsEventCallba
mSensorInfo.fifoReservedEventCount = 0;
mSensorInfo.fifoMaxEventCount = 0;
mSensorInfo.requiredPermission = "";
mSensorInfo.flags = 0;
mSensorInfo.flags = static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_DATA_INJECTION);
};
void MagnetometerSensor::readEventPayload(EventPayload& payload) {