Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd912650 authored by Peng Xu's avatar Peng Xu Committed by android-build-merger
Browse files

Merge "TYPE_DYNAMIC_SENSOR_META should be wake up sensor" am: 29280add am: 4925ffcb

am: ce7bcb28

Change-Id: I9a241d3ecf5c7bee929f42bcba4438a60e36f94c
parents e2f5c16e ce7bcb28
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -219,7 +219,10 @@ Sensor::Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersi
        break;
    case SENSOR_TYPE_DYNAMIC_SENSOR_META:
        mStringType = SENSOR_STRING_TYPE_DYNAMIC_SENSOR_META;
        mFlags = SENSOR_FLAG_SPECIAL_REPORTING_MODE; // special trigger and non-wake up
        mFlags |= SENSOR_FLAG_SPECIAL_REPORTING_MODE; // special trigger
        if (halVersion < SENSORS_DEVICE_API_VERSION_1_3) {
            mFlags |= SENSOR_FLAG_WAKE_UP;
        }
        break;
    case SENSOR_TYPE_POSE_6DOF:
        mStringType = SENSOR_STRING_TYPE_POSE_6DOF;