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

Commit d6f8e08a authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Camera2: Fix exposure compensation step value.

Fix floating-point divide error.

Change-Id: I61b140c1090d6773b9b530d19a2ec03cf784b85e
parent 750d74b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2350,7 +2350,7 @@ status_t Camera2Client::buildDefaultParameters() {
    if (!exposureCompensationStep.count) return NO_INIT;

    params.setFloat(CameraParameters::KEY_EXPOSURE_COMPENSATION_STEP,
            exposureCompensationStep.data.r[0].numerator /
            (float)exposureCompensationStep.data.r[0].numerator /
            exposureCompensationStep.data.r[0].denominator);

    k.mParameters.autoExposureLock = false;