Improve reliability of PN532 HSU

This commit is contained in:
Samy Kamkar 2021-01-16 12:07:52 -08:00
parent 8c1bf6f56f
commit 62216df450

View File

@ -395,7 +395,11 @@ uart_send_single(serial_port sp, const uint8_t *pbtTx, const size_t szTx, int ti
(void) timeout;
int error = 0;
for (int i = 0; i < szTx; i++)
{
error |= uart_send(sp, pbtTx+i, 1, timeout);
usleep(9);
}
return error ? NFC_EIO : NFC_SUCCESS;
}