Fix build on Microsoft Windows.

This commit is contained in:
Romain Tartiere 2010-08-18 16:55:16 +00:00
parent d0fe1f8255
commit 27b97c0fda
3 changed files with 4 additions and 4 deletions

View file

@ -241,6 +241,7 @@ bool pn53x_unwrap_frame(const byte_t* pbtFrame, const size_t szFrameBits, byte_t
bool
pn53x_decode_target_data(const byte_t* pbtRawData, size_t szDataLen, nfc_chip_t nc, nfc_target_type_t ntt, nfc_target_info_t* pnti)
{
uint8_t ui8AttribResLen;
switch(ntt) {
case NTT_MIFARE:
case NTT_GENERIC_PASSIVE_106:
@ -290,7 +291,7 @@ pn53x_decode_target_data(const byte_t* pbtRawData, size_t szDataLen, nfc_chip_t
pbtRawData += 12;
// Store temporarily the ATTRIB_RES length
uint8_t ui8AttribResLen = *(pbtRawData++);
ui8AttribResLen = *(pbtRawData++);
// Store the 4 bytes ID
memcpy(pnti->nbi.abtId, pbtRawData,4);