* commit '47d871b2795f714499a34ffe85b67f8577883f7b': Set default values for FifoMaxEventCount and ReservedEventCount.
This commit is contained in:
commit
d763fc7822
@ -56,6 +56,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
|
||||
|
Loading…
Reference in New Issue
Block a user