diff options
Diffstat (limited to 'src/phHciNfc_CE_B.c')
-rwxr-xr-x | src/phHciNfc_CE_B.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/phHciNfc_CE_B.c b/src/phHciNfc_CE_B.c index 6583160..aa7a849 100755 --- a/src/phHciNfc_CE_B.c +++ b/src/phHciNfc_CE_B.c @@ -252,6 +252,7 @@ phHciNfc_CE_B_Initialise( } default : { + status=NFCSTATUS_FAILED; break; } } @@ -334,6 +335,7 @@ phHciNfc_CE_B_Release( } default : { + status=NFCSTATUS_FAILED; break; } } @@ -442,7 +444,7 @@ phHciNfc_CE_B_Update_PipeInfo( /* Update the pipe_id of the card emulation A Gate o btained from the HCI Response */ ps_ce_b_info->pipe_id = pipeID; - if (HCI_UNKNOWN_PIPE_ID != pipeID) + if (HCI_UNKNOWN_PIPE_ID != pipeID && pipeID>0) { ps_ce_b_info->p_pipe_info = pPipeInfo; if (NULL != pPipeInfo) |