Browse Source

Merge pull request #358 from nwoolls/bug/dont-probe-bluetooth

Bugfix: don’t attempt to probe Bluetooth devices when scanning hardware
Luke-Jr 12 years ago
parent
commit
f655dfbf97
1 changed files with 3 additions and 1 deletions
  1. 3 1
      miner.c

+ 3 - 1
miner.c

@@ -1206,7 +1206,9 @@ void _vcom_devinfo_scan_lsdev(struct lowlevel_device_info ** const devinfo_list)
 	memcpy(devpath, devdir, devdirlen);
 	memcpy(devpath, devdir, devdirlen);
 	devpath[devdirlen] = '/';
 	devpath[devdirlen] = '/';
 	while ( (de = readdir(D)) ) {
 	while ( (de = readdir(D)) ) {
-		if (!strncmp(de->d_name, "cu.", 3))
+		if (!strncmp(de->d_name, "cu.", 3)
+			//don't probe Bluetooth devices - causes bus errors and segfaults
+			&& strncmp(de->d_name, "cu.Bluetooth", 12))
 			goto trydev;
 			goto trydev;
 		if (strncmp(de->d_name, "tty", 3))
 		if (strncmp(de->d_name, "tty", 3))
 			continue;
 			continue;