Browse Source

miner: scan for low level devices even if --scrypt is specified by the user (to detect Scrypt ASICs)

Nate Woolls 12 years ago
parent
commit
61be392750
1 changed files with 7 additions and 11 deletions
  1. 7 11
      miner.c

+ 7 - 11
miner.c

@@ -10515,15 +10515,12 @@ rescan:
 	bfg_need_detect_rescan = false;
 	
 #ifdef HAVE_BFG_LOWLEVEL
-	if (!opt_scrypt)
-	{
-		struct lowlevel_device_info * const infolist = lowlevel_scan(), *info, *infotmp;
-		
-		LL_FOREACH_SAFE(infolist, info, infotmp)
-			probe_device(info);
-		LL_FOREACH_SAFE(infolist, info, infotmp)
-			pthread_join(info->probe_pth, NULL);
-	}
+	struct lowlevel_device_info * const infolist = lowlevel_scan(), *info, *infotmp;
+	
+	LL_FOREACH_SAFE(infolist, info, infotmp)
+		probe_device(info);
+	LL_FOREACH_SAFE(infolist, info, infotmp)
+		pthread_join(info->probe_pth, NULL);
 #endif
 	
 	struct driver_registration *reg, *tmp;
@@ -10538,8 +10535,7 @@ rescan:
 	}
 
 #ifdef HAVE_BFG_LOWLEVEL
-	if (!opt_scrypt)
-		lowlevel_scan_free();
+	lowlevel_scan_free();
 #endif
 	
 	if (bfg_need_detect_rescan)