really fix types

This commit is contained in:
dark-samus 2018-11-17 23:19:23 -05:00
parent 849e436a2d
commit 765bacfb4c

View File

@ -105,7 +105,7 @@ Result pcvGetClockRate(PcvModule module, u32 *out_hz) {
return rc; return rc;
} }
Result pcvSetVoltageEnabled(u8 state, u32 voltage) { Result pcvSetVoltageEnabled(bool state, u32 voltage) {
IpcCommand c; IpcCommand c;
ipcInitialize(&c); ipcInitialize(&c);
@ -120,7 +120,7 @@ Result pcvSetVoltageEnabled(u8 state, u32 voltage) {
raw->magic = SFCI_MAGIC; raw->magic = SFCI_MAGIC;
raw->cmd_id = 8; raw->cmd_id = 8;
raw->state = state; raw->state = (u8)state;
raw->voltage = voltage; raw->voltage = voltage;
Result rc = serviceIpcDispatch(&g_pcvSrv); Result rc = serviceIpcDispatch(&g_pcvSrv);
@ -141,7 +141,7 @@ Result pcvSetVoltageEnabled(u8 state, u32 voltage) {
return rc; return rc;
} }
Result pcvGetVoltageEnabled(u8 *isEnabled, u32 voltage) { Result pcvGetVoltageEnabled(bool *isEnabled, u32 voltage) {
IpcCommand c; IpcCommand c;
ipcInitialize(&c); ipcInitialize(&c);
@ -171,7 +171,7 @@ Result pcvGetVoltageEnabled(u8 *isEnabled, u32 voltage) {
resp = r.Raw; resp = r.Raw;
rc = resp->result; rc = resp->result;
*isEnabled = resp->isEnabled; *isEnabled = (bool)resp->isEnabled;
} }
return rc; return rc;