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

Commit a10257a4 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 am: 34806cd8 am: 7fe5b8a7

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

Change-Id: I6a958d31232526020baa1d27ce088bb5ca72d605
parents 4780c250 7fe5b8a7
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;
}