Fix nfcInit error
This commit is contained in:
parent
14005eee52
commit
c3b22e3922
@ -18,7 +18,7 @@ Result nfcInit(void)
|
|||||||
ret = srvGetServiceHandle(&nfcHandle, "nfc:u");
|
ret = srvGetServiceHandle(&nfcHandle, "nfc:u");
|
||||||
if (R_SUCCEEDED(ret))
|
if (R_SUCCEEDED(ret))
|
||||||
{
|
{
|
||||||
ret = nfc_Initialize(0x02);
|
ret = NFC_Initialize(0x02);
|
||||||
if (R_FAILED(ret)) svcCloseHandle(nfcHandle);
|
if (R_FAILED(ret)) svcCloseHandle(nfcHandle);
|
||||||
}
|
}
|
||||||
if (R_FAILED(ret)) AtomicDecrement(&nfcRefCount);
|
if (R_FAILED(ret)) AtomicDecrement(&nfcRefCount);
|
||||||
|
Loading…
Reference in New Issue
Block a user