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

Commit 908adc64 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Requantize by resolution / 8" into rvc-dev am: 5e520a5a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/11836140

Change-Id: Ib4f13171d90c1dfcd8339d8e60967b40fd1ff52e
parents 931eebcc 5e520a5a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ inline void quantizeValue(float *value, double resolution) {
    // Increase the value of the sensor's nominal resolution to ensure that
    // sensor accuracy improvements, like runtime calibration, are not masked
    // during requantization.
    double incRes = 0.25 * resolution;
    double incRes = 0.125 * resolution;
    *value = round(static_cast<double>(*value) / incRes) * incRes;
}