nfcInit(): wait for NFC sysmodule to initialize
This commit is contained in:
parent
be79735c31
commit
0475b59e12
@ -37,7 +37,13 @@ Result nfcInit(NFC_OpType type)
|
||||
if (R_SUCCEEDED(ret))
|
||||
{
|
||||
nfc_optype = type;
|
||||
ret = NFC_Initialize(type);
|
||||
for (;;)
|
||||
{
|
||||
ret = NFC_Initialize(type);
|
||||
if (ret != 0xd0a17480)
|
||||
break;
|
||||
svcSleepThread(500000);
|
||||
}
|
||||
if (R_FAILED(ret)) svcCloseHandle(nfcHandle);
|
||||
}
|
||||
if (R_FAILED(ret)) AtomicDecrement(&nfcRefCount);
|
||||
|
Loading…
Reference in New Issue
Block a user