summaryrefslogtreecommitdiffstats
path: root/src/phLibNfc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/phLibNfc.c')
-rw-r--r--src/phLibNfc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/phLibNfc.c b/src/phLibNfc.c
index 6477a3f..63daaa2 100644
--- a/src/phLibNfc.c
+++ b/src/phLibNfc.c
@@ -230,13 +230,16 @@ NFCSTATUS phLibNfc_Mgt_Initialize(void *pDriverHandle,
eInitDefault,
phLibNfc_InitCb,
(void *)gpphLibContext);
+ if(Status!=NFCSTATUS_FAILED)
+ {
+ phLibNfc_Ndef_Init();
+ }
}
}
else
{
Status = NFCSTATUS_INSUFFICIENT_RESOURCES;
}
- phLibNfc_Ndef_Init();
}
}
else if(gpphLibContext->LibNfcState.next_state==eLibNfcHalStateShutdown)