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

Commit a57670c0 authored by Andrew Lehmer's avatar Andrew Lehmer
Browse files

Increase recent event count for light sensors

Bug: 64396552
Test: checked `dumpsys sensorservice` and observed 50 ALS samples
Change-Id: Ic92f426baa7c669b74c594dfe05257de0b8bbee4
parent eae8fe3d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -100,7 +100,8 @@ bool RecentEventLogger::populateLastEvent(sensors_event_t *event) const {
size_t RecentEventLogger::logSizeBySensorType(int sensorType) {
    return (sensorType == SENSOR_TYPE_STEP_COUNTER ||
            sensorType == SENSOR_TYPE_SIGNIFICANT_MOTION ||
            sensorType == SENSOR_TYPE_ACCELEROMETER) ? LOG_SIZE_LARGE : LOG_SIZE;
            sensorType == SENSOR_TYPE_ACCELEROMETER ||
            sensorType == SENSOR_TYPE_LIGHT) ? LOG_SIZE_LARGE : LOG_SIZE;
}

RecentEventLogger::SensorEventLog::SensorEventLog(const sensors_event_t& e) : mEvent(e) {