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

Commit 5e9888ea authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "sensors: More compatibility fixes" into gingerbread

parents 43f95d5d c61d083e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -191,9 +191,11 @@ ssize_t SensorDevice::poll(sensors_event_t* buffer, size_t count) {
            sensors_data_t oldBuffer;
            long result =  mSensorDataDevice->poll(mSensorDataDevice, &oldBuffer);
            if (result == 0x7FFFFFFF) {
                return pollsDone;
                continue;
            }
            if (!oldBuffer.time) {
            if ( oldBuffer.sensor <= 0 ||
                 oldBuffer.sensor > SENSOR_TYPE_ROTATION_VECTOR ||
                 !oldBuffer.time) {
                LOGV("Useless output at round %u from %d",pollsDone,oldBuffer.sensor);
                count--;
                continue;