mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
chg: USB doesnt need extra delay
This commit is contained in:
parent
d2fb18f648
commit
b378d373ad
1 changed files with 2 additions and 2 deletions
|
@ -669,7 +669,7 @@ void CloseProxmark(void) {
|
||||||
static size_t communication_delay(void) {
|
static size_t communication_delay(void) {
|
||||||
if (conn.send_via_fpc_usart) // needed also for Windows USB USART??
|
if (conn.send_via_fpc_usart) // needed also for Windows USB USART??
|
||||||
return 2 * (12000000 / conn.uart_speed);
|
return 2 * (12000000 / conn.uart_speed);
|
||||||
return 100;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -690,7 +690,7 @@ 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
|
||||||
if (ms_timeout != (size_t) -1)
|
if (ms_timeout != (size_t) - 1)
|
||||||
ms_timeout += communication_delay();
|
ms_timeout += communication_delay();
|
||||||
|
|
||||||
__atomic_store_n(&timeout_start_time, msclock(), __ATOMIC_SEQ_CST);
|
__atomic_store_n(&timeout_start_time, msclock(), __ATOMIC_SEQ_CST);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue