Fix ACR122S device detection when no ACR122S device available (endless UART receive)

This commit is contained in:
Romuald Conty 2012-05-17 00:38:54 +00:00
parent fb50e3b235
commit 6710ca943e

View file

@ -396,7 +396,7 @@ acr122s_get_firmware_version(nfc_device *pnd, char *version, size_t length)
acr122s_build_frame(pnd, cmd, sizeof(cmd), 0x48, 0, NULL, 0, 0);
if ((ret = acr122s_send_frame(pnd, cmd, 0)) != 0)
if ((ret = acr122s_send_frame(pnd, cmd, 1000)) != 0)
return ret;
if ((ret = acr122s_recv_frame(pnd, cmd, sizeof(cmd), 0, 0)) != 0)