mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
Add communication_delay also to dl_it timeout
This commit is contained in:
parent
f29facd15a
commit
d6892136ac
2 changed files with 14 additions and 1 deletions
|
@ -706,6 +706,10 @@ static bool dl_it(uint8_t *dest, uint32_t bytes, uint32_t start_index, PacketRes
|
|||
uint32_t bytes_completed = 0;
|
||||
timeout_start_time = msclock();
|
||||
|
||||
// Add delay depending on the communication channel & speed
|
||||
if (ms_timeout != (size_t)-1)
|
||||
ms_timeout += communication_delay();
|
||||
|
||||
while (true) {
|
||||
|
||||
if (getReply(response)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue