fix nfc_cc length

This commit is contained in:
merlokk 2019-07-06 00:15:21 +03:00
parent fa9408d5d6
commit 533ce39237

View File

@ -637,8 +637,8 @@ void nfc_process_iblock(uint8_t * buf, int len)
{ {
case APP_CAPABILITY_CONTAINER: case APP_CAPABILITY_CONTAINER:
printf1(TAG_NFC,"APP_CAPABILITY_CONTAINER\r\n"); printf1(TAG_NFC,"APP_CAPABILITY_CONTAINER\r\n");
if (reslen == 0 || reslen > sizeof(NFC_CC) - 1) if (reslen == 0 || reslen > sizeof(NFC_CC))
reslen = sizeof(NFC_CC) - 1; reslen = sizeof(NFC_CC);
nfc_write_response_ex(buf[0], (uint8_t *)&NFC_CC, reslen, SW_SUCCESS); nfc_write_response_ex(buf[0], (uint8_t *)&NFC_CC, reslen, SW_SUCCESS);
ams_wait_for_tx(10); ams_wait_for_tx(10);
break; break;