Browse Source

Bugfix: -S all: Mac OS X needs to probe /dev/cu.*, not just /dev/cu.usb*

Luke Dashjr 12 years ago
parent
commit
b38ba4cdfa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.c

+ 1 - 1
miner.c

@@ -714,7 +714,7 @@ tryagain: ;
 	memcpy(devpath, devdir, devdirlen);
 	devpath[devdirlen] = '/';
 	while ( (de = readdir(D)) ) {
-		if (!strncmp(de->d_name, "cu.usb", 6))
+		if (!strncmp(de->d_name, "cu.", 3))
 			goto trydev;
 		if (strncmp(de->d_name, "tty", 3))
 			continue;