Browse Source

Make sure to set timeout to 100ms instead of 1ms in avalon read loop for select.

Con Kolivas 13 years ago
parent
commit
691b5289b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-avalon.c

+ 1 - 1
driver-avalon.c

@@ -209,7 +209,7 @@ static int avalon_gets(int fd, uint8_t *buf, int read_count,
 	bool first = true;
 	bool first = true;
 
 
 	while (true) {
 	while (true) {
-		struct timeval timeout = {0, 1000};
+		struct timeval timeout = {0, 100000};
 		fd_set rd;
 		fd_set rd;
 
 
 		FD_ZERO(&rd);
 		FD_ZERO(&rd);