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

Commit 4998c16c authored by Grigory Dzhavadyan's avatar Grigory Dzhavadyan Committed by Joshua Duong
Browse files

Fix min delay for virtual geomag vector sensor

bug: 31808374

N-CTS requires this to be <= 10 ms

Change-Id: I0959fa2cb9ae40bc832726fedccc77366aba1520
(cherry picked from commit f1a9141f72fc73af0485d12f5e4b5b176dbe9f34)
parent 1bb1f85d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -163,7 +163,7 @@ status_t SensorFusion::setDelay(int mode, void* ident, int64_t ns) {
    }
    mSensorDevice.batch(ident, mAcc.getHandle(), 0, ns, 0);
    if (mode != FUSION_NOMAG) {
        mSensorDevice.batch(ident, mMag.getHandle(), 0, ms2ns(20), 0);
        mSensorDevice.batch(ident, mMag.getHandle(), 0, ms2ns(10), 0);
    }
    if (mode != FUSION_NOGYRO) {
        mSensorDevice.batch(ident, mGyro.getHandle(), 0, mTargetDelayNs, 0);