Typecast to be specific what is needed
This commit is contained in:
parent
c4fb2bda0d
commit
66378cc2d5
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ bool dev_acr122_transceive(const dev_spec ds, const byte_t* pbtTx, const uint32_
|
||||||
// Make sure we have an emulated answer that fits the return buffer
|
// Make sure we have an emulated answer that fits the return buffer
|
||||||
if (ulRxBufLen < 4 || (ulRxBufLen-4) > *puiRxLen) return false;
|
if (ulRxBufLen < 4 || (ulRxBufLen-4) > *puiRxLen) return false;
|
||||||
// Wipe out the 4 APDU emulation bytes: D5 4B .. .. .. 90 00
|
// Wipe out the 4 APDU emulation bytes: D5 4B .. .. .. 90 00
|
||||||
*puiRxLen = ulRxBufLen-4;
|
*puiRxLen = ((uint32_t)ulRxBufLen)-4;
|
||||||
memcpy(pbtRx,abtRxBuf+2,*puiRxLen);
|
memcpy(pbtRx,abtRxBuf+2,*puiRxLen);
|
||||||
|
|
||||||
// Transmission went successful
|
// Transmission went successful
|
||||||
|
|
Loading…
Reference in a new issue