mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-19 21:03:23 -07:00
Fix for USB uart slowness since PR #720
This commit is contained in:
parent
53fb848a0a
commit
a54fe71fd4
1 changed files with 6 additions and 2 deletions
|
@ -69,9 +69,9 @@ typedef struct {
|
|||
} serial_port_unix;
|
||||
|
||||
// Set time-out on 30 miliseconds
|
||||
const struct timeval timeout = {
|
||||
struct timeval timeout = {
|
||||
.tv_sec = 0, // 0 second
|
||||
.tv_usec = 300000 // 300000 micro seconds
|
||||
.tv_usec = 30000 // 30000 micro seconds
|
||||
};
|
||||
|
||||
serial_port uart_open(const char* pcPortName)
|
||||
|
@ -88,6 +88,10 @@ serial_port uart_open(const char* pcPortName)
|
|||
}
|
||||
char *colon = strrchr(addrstr, ':');
|
||||
char *portstr;
|
||||
|
||||
// Set time-out to 300 miliseconds only for TCP port
|
||||
timeout.tv_usec = 300000;
|
||||
|
||||
if (colon) {
|
||||
portstr = colon + 1;
|
||||
*colon = '\0';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue