Use default timeout in nfc-anticol example (prevents RX from locking after HALT)

This commit is contained in:
Marcos Vives Del Sol 2015-06-20 16:58:11 +02:00
parent 1eaa4dabdf
commit a9b1b94ffd

View File

@ -130,7 +130,7 @@ transmit_bytes(const uint8_t *pbtTx, const size_t szTx)
printf("Response after %u cycles\n", cycles);
}
} else {
if ((res = nfc_initiator_transceive_bytes(pnd, pbtTx, szTx, abtRx, sizeof(abtRx), 0)) < 0)
if ((res = nfc_initiator_transceive_bytes(pnd, pbtTx, szTx, abtRx, sizeof(abtRx), -1)) < 0)
return false;
}
szRx = res;