diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-11-11 21:08:24 +0100 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-11-11 21:08:24 +0100 |
commit | 85af7251179c3cf53c785e9a055942d3ab6462c1 (patch) | |
tree | b533d7bdaffddf95418e006d7be939b2466bdd70 /src/phLibNfc.c | |
parent | f64f7e90f9c0dd6f4c52c66a5fd54d9af754c675 (diff) | |
download | external_libnfc-nxp-85af7251179c3cf53c785e9a055942d3ab6462c1.zip external_libnfc-nxp-85af7251179c3cf53c785e9a055942d3ab6462c1.tar.gz external_libnfc-nxp-85af7251179c3cf53c785e9a055942d3ab6462c1.tar.bz2 |
Properly handle missing firmwaresreplicant-4.2-0002replicant-4.2-0001
Change-Id: I9f732f6e1ded628ab24cae6cfb18aa3d6d527201
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'src/phLibNfc.c')
-rw-r--r-- | src/phLibNfc.c | 5 |
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) |