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

Commit d35e3af0 authored by Aravind Akella's avatar Aravind Akella
Browse files

Set default values for FifoMaxEventCount and ReservedEventCount.

Change-Id: I4f610c2912ffe1697d1ffb99c556d1c88578466e
parent b6601961
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -54,6 +54,9 @@ Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion)
    if (halVersion >= SENSORS_DEVICE_API_VERSION_1_1) {
        mFifoReservedEventCount = hwSensor->fifoReservedEventCount;
        mFifoMaxEventCount = hwSensor->fifoMaxEventCount;
    } else {
        mFifoReservedEventCount = 0;
        mFifoMaxEventCount = 0;
    }

    // Ensure existing sensors have correct string type and required