Oups it miss some space to handle HB.
This commit is contained in:
parent
41758ab63f
commit
cbca45e21c
1 changed files with 1 additions and 1 deletions
|
@ -1271,7 +1271,7 @@ pn53x_TgInitAsTarget (nfc_device_t * pnd, nfc_target_mode_t ntm,
|
|||
{
|
||||
byte_t abtRx[MAX_FRAME_LEN];
|
||||
size_t szRx;
|
||||
byte_t abtCmd[sizeof (pncmd_target_init) + 48]; // 47 bytes max. for General Bytes and 1 for GB lenght
|
||||
byte_t abtCmd[sizeof (pncmd_target_init) + 48 + 49]; // 47 bytes max. for General Bytes and 1 for GB lenght, 48 bytes max. for Historical Bytes and 1 for HB lenght
|
||||
size_t szOptionalBytes = 0;
|
||||
|
||||
memcpy (abtCmd, pncmd_target_init, sizeof (pncmd_target_init));
|
||||
|
|
Loading…
Add table
Reference in a new issue