mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 03:12:15 +02:00
Really fix whitespace
This commit is contained in:
parent
f902b7f833
commit
6d8682db44
@ -126,16 +126,16 @@ Result pcvSetVoltageEnabled(bool state, u32 voltage) {
|
|||||||
Result rc = serviceIpcDispatch(&g_pcvSrv);
|
Result rc = serviceIpcDispatch(&g_pcvSrv);
|
||||||
|
|
||||||
if (R_SUCCEEDED(rc)) {
|
if (R_SUCCEEDED(rc)) {
|
||||||
IpcParsedCommand r;
|
IpcParsedCommand r;
|
||||||
struct {
|
struct {
|
||||||
u64 magic;
|
u64 magic;
|
||||||
u64 result;
|
u64 result;
|
||||||
} *resp;
|
} *resp;
|
||||||
|
|
||||||
serviceIpcParse(&g_pcvSrv, &r, sizeof(*resp));
|
serviceIpcParse(&g_pcvSrv, &r, sizeof(*resp));
|
||||||
resp = r.Raw;
|
resp = r.Raw;
|
||||||
|
|
||||||
rc = resp->result;
|
rc = resp->result;
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
@ -160,18 +160,18 @@ Result pcvGetVoltageEnabled(bool *isEnabled, u32 voltage) {
|
|||||||
Result rc = serviceIpcDispatch(&g_pcvSrv);
|
Result rc = serviceIpcDispatch(&g_pcvSrv);
|
||||||
|
|
||||||
if (R_SUCCEEDED(rc)) {
|
if (R_SUCCEEDED(rc)) {
|
||||||
IpcParsedCommand r;
|
IpcParsedCommand r;
|
||||||
struct {
|
struct {
|
||||||
u64 magic;
|
u64 magic;
|
||||||
u64 result;
|
u64 result;
|
||||||
bool isEnabled;
|
bool isEnabled;
|
||||||
} *resp;
|
} *resp;
|
||||||
|
|
||||||
serviceIpcParse(&g_pcvSrv, &r, sizeof(*resp));
|
serviceIpcParse(&g_pcvSrv, &r, sizeof(*resp));
|
||||||
resp = r.Raw;
|
resp = r.Raw;
|
||||||
|
|
||||||
rc = resp->result;
|
rc = resp->result;
|
||||||
*isEnabled = resp->isEnabled;
|
*isEnabled = resp->isEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
Loading…
Reference in New Issue
Block a user