Commit 6710ca94 authored by Romuald Conty's avatar Romuald Conty

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

parent fb50e3b2
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment