Browse Source

Bugfix: sysfs autodetect: Continue searching even after finding one tty (fixes multiple ttys per device, such as some Cairnsmore1s)

Luke Dashjr 12 years ago
parent
commit
998a995ff2
1 changed files with 0 additions and 5 deletions
  1. 0 5
      fpgautils.c

+ 0 - 5
fpgautils.c

@@ -223,15 +223,10 @@ int _serial_autodetect_sysfs(detectone_func_t detectone, va_list needles)
 				
 				strcpy(&buf[5], de->d_name);
 				if (detectone(buf))
-				{
 					++found;
-					closedir(DT);
-					goto nextdev;
-				}
 			}
 			closedir(DT);
 		}
-nextdev:
 		closedir(DS);
 	}
 	closedir(D);