Skip to content
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

Merged
merged 8 commits into from
Nov 19, 2018

Conversation

pixel-stuck
Copy link
Contributor

No description provided.

@yellows8
Copy link
Contributor

Formatting needs to match the other funcs.

ipcInitialize(&c);

struct {
u64 magic;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See other funcs whitespace.

Result rc = serviceIpcDispatch(&g_pcvSrv);

if (R_SUCCEEDED(rc)) {
IpcParsedCommand r;
Copy link
Contributor

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.

struct {
u64 magic;
u64 cmd_id;
bool state;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

u8

struct {
u64 magic;
u64 result;
bool isEnabled;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

u8

resp = r.Raw;

rc = resp->result;
*isEnabled = (bool)resp->isEnabled;
Copy link
Contributor

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) ...

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

@yellows8 yellows8 requested a review from fincs November 18, 2018 22:23
@yellows8 yellows8 merged commit a7577f7 into switchbrew:master Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants