-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pcvSetVoltageEnabled and pcvGetVoltageEnabled #208
Conversation
Formatting needs to match the other funcs. |
nx/source/services/pcv.c
Outdated
ipcInitialize(&c); | ||
|
||
struct { | ||
u64 magic; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See other funcs whitespace.
nx/source/services/pcv.c
Outdated
Result rc = serviceIpcDispatch(&g_pcvSrv); | ||
|
||
if (R_SUCCEEDED(rc)) { | ||
IpcParsedCommand r; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use same whitespace as elsewhere.
nx/source/services/pcv.c
Outdated
struct { | ||
u64 magic; | ||
u64 cmd_id; | ||
bool state; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u8
nx/source/services/pcv.c
Outdated
struct { | ||
u64 magic; | ||
u64 result; | ||
bool isEnabled; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u8
nx/source/services/pcv.c
Outdated
resp = r.Raw; | ||
|
||
rc = resp->result; | ||
*isEnabled = (bool)resp->isEnabled; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (R_SUCCEEDED(rc) && isEnabled) ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to do something similar with out_hz above too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
No description provided.