mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-08 09:10:06 +08:00
usart txrx: wait reply depends on rx waittime
This commit is contained in:
parent
e22be4b47b
commit
13b461cab2
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ static int usart_txrx(uint8_t *srcdata, size_t srclen, uint8_t *dstdata, size_t
|
|||
memcpy(payload.data, srcdata, srclen);
|
||||
SendCommandNG(CMD_USART_TXRX, (uint8_t *)&payload, srclen + sizeof(payload.waittime));
|
||||
PacketResponseNG resp;
|
||||
if (!WaitForResponseTimeout(CMD_USART_TXRX, &resp, 1000)) {
|
||||
if (!WaitForResponseTimeout(CMD_USART_TXRX, &resp, waittime + 500)) {
|
||||
return PM3_ETIMEOUT;
|
||||
}
|
||||
if (resp.status == PM3_SUCCESS) {
|
||||
|
|
Loading…
Reference in a new issue