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

Commit ce7bcb28 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

Change-Id: Id48ac0e29a62e17495ae0ae7f4b5741e89e93121
parents f136f947 4925ffcb
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;