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

Commit 871e9a84 authored by Shareef Ali's avatar Shareef Ali Committed by Ricardo Cerqueira
Browse files

Telephony: fix tdsdma asu invalid value

The magic value for invalid asu is "99", not "255". This error is causing the value validity checks to fail incorrectly, fixit.

Change-Id: Ief816eb577ccf371b3c85df1fe9515eb0bfb3f06
parent 835d116e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -933,7 +933,7 @@ public class SignalStrength implements Parcelable {
        final int tdScdmaDbm = getTdScdmaDbm();
        int tdScdmaAsuLevel;

        if (tdScdmaDbm == INVALID) tdScdmaAsuLevel = 255;
        if (tdScdmaDbm == INVALID) tdScdmaAsuLevel = 99;
        else tdScdmaAsuLevel = tdScdmaDbm + 120;
        if (DBG) log("TD-SCDMA Asu level: " + tdScdmaAsuLevel);
        return tdScdmaAsuLevel;