X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/b85385a058cf5f9f1e83b91be1c85d1f1931f1c5..b828a4e16818697605d57f2600cbb815c5ce5e7e:/client/uart.c diff --git a/client/uart.c b/client/uart.c index 508eb672..5870ebae 100644 --- a/client/uart.c +++ b/client/uart.c @@ -123,7 +123,7 @@ void uart_close(const serial_port sp) { // Does the system allows us to place a lock on this file descriptor int err = fcntl(spu->fd, F_SETLK, &fl); if ( err == -1) { - perror("fcntl"); + //perror("fcntl"); } close(spu->fd); free(sp); @@ -385,10 +385,10 @@ serial_port uart_open(const char* pcPortName) { return INVALID_SERIAL_PORT; } - sp->ct.ReadIntervalTimeout = 0; - sp->ct.ReadTotalTimeoutMultiplier = 0; + sp->ct.ReadIntervalTimeout = 1; + sp->ct.ReadTotalTimeoutMultiplier = 1; sp->ct.ReadTotalTimeoutConstant = 30; - sp->ct.WriteTotalTimeoutMultiplier = 0; + sp->ct.WriteTotalTimeoutMultiplier = 1; sp->ct.WriteTotalTimeoutConstant = 30; if(!SetCommTimeouts(sp->hPort,&sp->ct)) {