Cahnge us to bool

This commit is contained in:
Kartik 2017-07-09 17:38:59 +05:30 committed by GitHub
parent 5f28a4b0be
commit e167418096

View File

@ -94,7 +94,7 @@ Result PTMU_GetTotalStepCount(u32 *steps)
return (Result)cmdbuf[1]; return (Result)cmdbuf[1];
} }
Result PTMU_GetAdapterState(u8 *out) Result PTMU_GetAdapterState(bool *out)
{ {
Result ret=0; Result ret=0;
u32 *cmdbuf = getThreadCommandBuffer(); u32 *cmdbuf = getThreadCommandBuffer();
@ -103,7 +103,7 @@ Result PTMU_GetAdapterState(u8 *out)
if(R_FAILED(ret = svcSendSyncRequest(ptmuHandle)))return ret; if(R_FAILED(ret = svcSendSyncRequest(ptmuHandle)))return ret;
*out = cmdbuf[2]; *out = cmdbuf[2] & 0xFF;
return (Result)cmdbuf[1]; return (Result)cmdbuf[1];
} }