From 1c7419cf7fd8913852433a02a0f16da8912fae6f Mon Sep 17 00:00:00 2001 From: Jan Brands Date: Sat, 27 Nov 2010 17:16:31 +0100 Subject: Fix from the Bangalore team for long APDUs Change-Id: Id251fcd72bcc91a3fd85ac26c15fd609ce9f5e4e --- src/phHciNfc_RFReader.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/phHciNfc_RFReader.c') diff --git a/src/phHciNfc_RFReader.c b/src/phHciNfc_RFReader.c index 816c48d..6f53f74 100644 --- a/src/phHciNfc_RFReader.c +++ b/src/phHciNfc_RFReader.c @@ -2253,7 +2253,7 @@ phHciNfc_ReaderMgmt_Release( phHciNfc_Append_HCPFrame((uint8_t *)hcp_message->payload, i, p_pipe_info->param_info, p_pipe_info->param_length); - length =(uint8_t)(length + i + p_pipe_info->param_length); + length =(uint16_t)(length + i + p_pipe_info->param_length); break; } default: @@ -2299,7 +2299,7 @@ phHciNfc_ReaderMgmt_Release( phHciNfc_HCP_Message_t *hcp_message = NULL; phHciNfc_Pipe_Info_t *p_pipe_info = NULL; uint8_t i = 0; - uint8_t length=0; + uint16_t length=0; NFCSTATUS status = NFCSTATUS_SUCCESS; if( (NULL == psHciContext) @@ -2332,7 +2332,7 @@ phHciNfc_ReaderMgmt_Release( phHciNfc_Append_HCPFrame((uint8_t *)hcp_message->payload, i, p_pipe_info->param_info, p_pipe_info->param_length); - length =(uint8_t)(length + i + p_pipe_info->param_length); + length =(uint16_t)(length + i + p_pipe_info->param_length); break; } case NXP_WR_PRESCHECK: @@ -2358,7 +2358,7 @@ phHciNfc_ReaderMgmt_Release( phHciNfc_Append_HCPFrame((uint8_t *)hcp_message->payload, i, p_pipe_info->param_info, p_pipe_info->param_length); - length =(uint8_t)(length + i + p_pipe_info->param_length); + length =(uint16_t)(length + i + p_pipe_info->param_length); break; } default: -- cgit v1.1