diff options
Diffstat (limited to 'src/phFriNfc_Llcp.c')
-rw-r--r-- | src/phFriNfc_Llcp.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/phFriNfc_Llcp.c b/src/phFriNfc_Llcp.c index c17cad9..ef7e1b9 100644 --- a/src/phFriNfc_Llcp.c +++ b/src/phFriNfc_Llcp.c @@ -936,18 +936,10 @@ static void phFriNfc_Llcp_Receive_CB( void *pContext, /* Parse header */ phFriNfc_Llcp_Buffer2Header(psData->buffer, 0, &sPacketHeader); - if (sPacketHeader.ptype != PHFRINFC_LLCP_PTYPE_SYMM) - { - LLCP_PRINT_BUFFER("\nReceived LLCP packet :", psData->buffer, psData->length); - } - else - { - LLCP_PRINT("?"); - } - /* Check reception status and for pending disconnection */ if ((status != NFCSTATUS_SUCCESS) || (Llcp->bDiscPendingFlag == TRUE)) { + LLCP_DEBUG("\nReceived LLCP packet error - status = 0x%04x", status); /* Reset disconnection operation */ Llcp->bDiscPendingFlag = FALSE; /* Deactivate the link */ @@ -955,6 +947,16 @@ static void phFriNfc_Llcp_Receive_CB( void *pContext, return; } + if (sPacketHeader.ptype != PHFRINFC_LLCP_PTYPE_SYMM) + { + LLCP_PRINT_BUFFER("\nReceived LLCP packet :", psData->buffer, psData->length); + } + else + { + LLCP_PRINT("?"); + } + + /* Check new link status */ switch(Llcp->state) { |