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

Commit 948dd6da authored by WyattRiley's avatar WyattRiley
Browse files

Fix ADR bit mask to restore lost bits

Fixes: 118462127
Test: Verified with test code & temporary debug prints on device
on Pixel 2.  (Pixel 2 does not support this feature so test code
only.)

Change-Id: I3e126d718f6664b1466cc5e200b3db6af2dd25f8
parent ed0f1262
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -816,7 +816,7 @@ void GnssMeasurementCallback::translateGnssMeasurement_V1_0(
        measurement->pseudorangeRateUncertaintyMps);
    SET(AccumulatedDeltaRangeState,
        (static_cast<int32_t>(measurement->accumulatedDeltaRangeState) &
        !ADR_STATE_HALF_CYCLE_REPORTED)); // Half Cycle state not reported from Hardware in V1_0
        ~ADR_STATE_HALF_CYCLE_REPORTED)); // Half Cycle state not reported from Hardware in V1_0
    SET(AccumulatedDeltaRangeMeters, measurement->accumulatedDeltaRangeM);
    SET(AccumulatedDeltaRangeUncertaintyMeters,
        measurement->accumulatedDeltaRangeUncertaintyM);