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

Commit fca122ef authored by Yu-Han Yang's avatar Yu-Han Yang
Browse files

Fix range when printing OtherModesEnergyMilliJoule

Bug: 184880870
Test: on device
Change-Id: I5e07c4a85a3bdf8d11e3bfe2b2f1ff909b2e4d57
parent 6b2d6fbe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -181,7 +181,7 @@ public class GnssPowerStats {
            ipw.println("mJ");
        }
        if (capabilities.hasPowerOtherModes()) {
            for (int i = 1; i <= mOtherModesEnergyMilliJoule.length; i++) {
            for (int i = 0; i < mOtherModesEnergyMilliJoule.length; i++) {
                ipw.print("other mode [" + i + "] power: ");
                ipw.print(mOtherModesEnergyMilliJoule[i]);
                ipw.println("mJ");