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

Commit 29280add authored by Peng Xu's avatar Peng Xu Committed by Gerrit Code Review
Browse files

Merge "TYPE_DYNAMIC_SENSOR_META should be wake up sensor"

parents 57eb11ed 4e44cf52
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -219,7 +219,10 @@ Sensor::Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersi
        break;
        break;
    case SENSOR_TYPE_DYNAMIC_SENSOR_META:
    case SENSOR_TYPE_DYNAMIC_SENSOR_META:
        mStringType = SENSOR_STRING_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;
        break;
    case SENSOR_TYPE_POSE_6DOF:
    case SENSOR_TYPE_POSE_6DOF:
        mStringType = SENSOR_STRING_TYPE_POSE_6DOF;
        mStringType = SENSOR_STRING_TYPE_POSE_6DOF;