mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 11:22:15 +02:00
Fix types. bool -> u8
This commit is contained in:
parent
6d8682db44
commit
849e436a2d
@ -105,14 +105,14 @@ Result pcvGetClockRate(PcvModule module, u32 *out_hz) {
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result pcvSetVoltageEnabled(bool state, u32 voltage) {
|
Result pcvSetVoltageEnabled(u8 state, u32 voltage) {
|
||||||
IpcCommand c;
|
IpcCommand c;
|
||||||
ipcInitialize(&c);
|
ipcInitialize(&c);
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u64 magic;
|
u64 magic;
|
||||||
u64 cmd_id;
|
u64 cmd_id;
|
||||||
bool state;
|
u8 state;
|
||||||
u32 voltage;
|
u32 voltage;
|
||||||
} *raw;
|
} *raw;
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ Result pcvSetVoltageEnabled(bool state, u32 voltage) {
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result pcvGetVoltageEnabled(bool *isEnabled, u32 voltage) {
|
Result pcvGetVoltageEnabled(u8 *isEnabled, u32 voltage) {
|
||||||
IpcCommand c;
|
IpcCommand c;
|
||||||
ipcInitialize(&c);
|
ipcInitialize(&c);
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ Result pcvGetVoltageEnabled(bool *isEnabled, u32 voltage) {
|
|||||||
struct {
|
struct {
|
||||||
u64 magic;
|
u64 magic;
|
||||||
u64 result;
|
u64 result;
|
||||||
bool isEnabled;
|
u8 isEnabled;
|
||||||
} *resp;
|
} *resp;
|
||||||
|
|
||||||
serviceIpcParse(&g_pcvSrv, &r, sizeof(*resp));
|
serviceIpcParse(&g_pcvSrv, &r, sizeof(*resp));
|
||||||
|
Loading…
Reference in New Issue
Block a user