Browse Source

Don't try to start devices that don't support scrypt when scrypt mining.

Con Kolivas 13 years ago
parent
commit
d2e93ca636
1 changed files with 8 additions and 4 deletions
  1. 8 4
      miner.c

+ 8 - 4
miner.c

@@ -5922,19 +5922,23 @@ int main(int argc, char *argv[])
 #endif
 
 #ifdef USE_ICARUS
-	icarus_api.api_detect();
+	if (!opt_scrypt)
+		icarus_api.api_detect();
 #endif
 
 #ifdef USE_BITFORCE
-	bitforce_api.api_detect();
+	if (!opt_scrypt)
+		bitforce_api.api_detect();
 #endif
 
 #ifdef USE_MODMINER
-	modminer_api.api_detect();
+	if (!opt_scrypt)
+		modminer_api.api_detect();
 #endif
 
 #ifdef USE_ZTEX
-	ztex_api.api_detect();
+	if (!opt_scrypt)
+		ztex_api.api_detect();
 #endif
 
 #ifdef WANT_CPUMINE