am d35e3af0
: Set default values for FifoMaxEventCount and ReservedEventCount.
* commit 'd35e3af04d4b7e850a3b87b2211d1a3993f9b76f': Set default values for FifoMaxEventCount and ReservedEventCount.
This commit is contained in:
commit
47d871b279
@ -54,6 +54,9 @@ Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion)
|
|||||||
if (halVersion >= SENSORS_DEVICE_API_VERSION_1_1) {
|
if (halVersion >= SENSORS_DEVICE_API_VERSION_1_1) {
|
||||||
mFifoReservedEventCount = hwSensor->fifoReservedEventCount;
|
mFifoReservedEventCount = hwSensor->fifoReservedEventCount;
|
||||||
mFifoMaxEventCount = hwSensor->fifoMaxEventCount;
|
mFifoMaxEventCount = hwSensor->fifoMaxEventCount;
|
||||||
|
} else {
|
||||||
|
mFifoReservedEventCount = 0;
|
||||||
|
mFifoMaxEventCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure existing sensors have correct string type and required
|
// Ensure existing sensors have correct string type and required
|
||||||
|
Loading…
Reference in New Issue
Block a user