]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/uart.c
ADD: 'script run hard_autopwn' - a lua script which should run hardnested attack...
[proxmark3-svn] / client / uart.c
index 508eb672fe48dd5a569c055f39202d42f7b7a9de..5870ebaeeade8b3503d6735620d2e85ef6b26e4d 100644 (file)
@@ -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)) {
Impressum, Datenschutz