Commit 8fa708093b1e9e9c5ffee4ee426a7dfd878d278b

Con Kolivas 2012-08-18T11:07:32

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

diff --git a/cgminer.c b/cgminer.c
index 60aea05..ec36c28 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -5448,19 +5448,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