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

Commit 789f8323 authored by Wink Saville's avatar Wink Saville
Browse files

Add outputting "on" or "off" setRadioPower.

Change-Id: I26087427c2d0feaf09b01e7eefba31962b2361f0
parent 601a7c72
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -1402,19 +1402,23 @@ public final class RIL extends BaseCommands implements CommandsInterface {
                                   RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE, null);
                    rrCs.mp.writeInt(1);
                    rrCs.mp.writeInt(mCdmaSubscription);
                    if (RILJ_LOGD) riljLog(rrCs.serialString() + "> "
                    if (RILJ_LOGD) {
                        riljLog(rrCs.serialString() + "> "
                                + requestToString(rrCs.mRequest) + " : " + mCdmaSubscription);
                    }
                    send(rrCs);
                }
            }
        }
        RILRequest rr
                = RILRequest.obtain(RIL_REQUEST_RADIO_POWER, result);
        RILRequest rr = RILRequest.obtain(RIL_REQUEST_RADIO_POWER, result);

        rr.mp.writeInt(1);
        rr.mp.writeInt(on ? 1 : 0);

        if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest));
        if (RILJ_LOGD) {
            riljLog(rr.serialString() + "> " + requestToString(rr.mRequest)
                    + (on ? " on" : " off"));
        }

        send(rr);
    }