From b378d373ad518cfc69ad21dc8d7c08cdd90cb6ad Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 29 May 2019 04:00:02 -0400 Subject: [PATCH] chg: USB doesnt need extra delay --- client/comms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/comms.c b/client/comms.c index 20472ce5b..89e9ec610 100644 --- a/client/comms.c +++ b/client/comms.c @@ -669,7 +669,7 @@ void CloseProxmark(void) { static size_t communication_delay(void) { if (conn.send_via_fpc_usart) // needed also for Windows USB USART?? 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; // Add delay depending on the communication channel & speed - if (ms_timeout != (size_t) -1) + if (ms_timeout != (size_t) - 1) ms_timeout += communication_delay(); __atomic_store_n(&timeout_start_time, msclock(), __ATOMIC_SEQ_CST);