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

Commit 6bd4bf76 authored by Aniroop Mathur's avatar Aniroop Mathur Committed by android-build-merger
Browse files

Merge "Native: Sensor: For ndk sensor enable request, enable sensor with...

Merge "Native: Sensor: For ndk sensor enable request, enable sensor with SENSOR_DELAY_NORMAL delay instead of 0 delay, by default " into nyc-dev
am: ec3c05b2

* commit 'ec3c05b2':
  Native: Sensor: For ndk sensor enable request, enable sensor with SENSOR_DELAY_NORMAL delay instead of 0 delay, by default
parents 01e0d8f7 ec3c05b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ status_t SensorEventQueue::wake() const
}

status_t SensorEventQueue::enableSensor(Sensor const* sensor) const {
    return mSensorEventConnection->enableDisable(sensor->getHandle(), true, 0, 0, false);
    return mSensorEventConnection->enableDisable(sensor->getHandle(), true, us2ns(200000), 0, false);
}

status_t SensorEventQueue::disableSensor(Sensor const* sensor) const {