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

Commit ab4e1ffd authored by Ashutosh Joshi's avatar Ashutosh Joshi
Browse files

Add an uncalibrated sensor type.

Adding an uncalibrated sensor type.

Test: Build compiles.
Change-Id: Ib082e81220ecafe76452c8df5ffe3e3f7c80a50a
parent 78ef6e13
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -243,6 +243,14 @@ Sensor::Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersi
        mStringType = SENSOR_STRING_TYPE_HEART_BEAT;
        mFlags |= SENSOR_FLAG_SPECIAL_REPORTING_MODE;
        break;

    // TODO:  Placeholder for LLOB sensor type


    case SENSOR_TYPE_ACCELEROMETER_UNCALIBRATED:
        mStringType = SENSOR_STRING_TYPE_ACCELEROMETER_UNCALIBRATED;
        mFlags |= SENSOR_FLAG_CONTINUOUS_MODE;
        break;
    default:
        // Only pipe the stringType, requiredPermission and flags for custom sensors.
        if (halVersion > SENSORS_DEVICE_API_VERSION_1_0 && hwSensor.stringType) {