Fix ACR122S device detection when no ACR122S device available (endless UART receive)
This commit is contained in:
parent
fb50e3b235
commit
6710ca943e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
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;
|
return ret;
|
||||||
|
|
||||||
if ((ret = acr122s_recv_frame(pnd, cmd, sizeof(cmd), 0, 0)) != 0)
|
if ((ret = acr122s_recv_frame(pnd, cmd, sizeof(cmd), 0, 0)) != 0)
|
||||||
|
|
Loading…
Reference in a new issue