mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 10:32:15 +02:00
check status pointer
This commit is contained in:
parent
be6cd3955a
commit
c1507299cb
@ -35,7 +35,7 @@ Result tcDisableFanControl(void) {
|
|||||||
Result tcIsFanControlEnabled(bool *status) {
|
Result tcIsFanControlEnabled(bool *status) {
|
||||||
u8 tmp=0;
|
u8 tmp=0;
|
||||||
Result rc = serviceDispatchOut(&g_tcSrv, 8, tmp);
|
Result rc = serviceDispatchOut(&g_tcSrv, 8, tmp);
|
||||||
if (R_SUCCEEDED(rc)) *status = tmp & 1;
|
if (R_SUCCEEDED(rc) && status) *status = out & 1;
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user