mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
WaitForResponseTimeoutW: fix, no communication_delay when timeout=-1
This commit is contained in:
parent
a2e55be468
commit
75ee60f267
1 changed files with 3 additions and 1 deletions
|
@ -596,7 +596,9 @@ bool WaitForResponseTimeoutW(uint32_t cmd, PacketResponseNG *response, size_t ms
|
||||||
response = &resp;
|
response = &resp;
|
||||||
|
|
||||||
// Add delay depending on the communication channel & speed
|
// Add delay depending on the communication channel & speed
|
||||||
ms_timeout += communication_delay();
|
if (ms_timeout != (size_t)-1)
|
||||||
|
ms_timeout += communication_delay();
|
||||||
|
|
||||||
uint64_t start_time = msclock();
|
uint64_t start_time = msclock();
|
||||||
|
|
||||||
// Wait until the command is received
|
// Wait until the command is received
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue