Commit 1f2e9a49f43eb19a2a03645c8cc6076368d2fd19

Con Kolivas 2012-07-05T00:08:33

Enable nonce range in the normal init sequence for bfl.

diff --git a/driver-bitforce.c b/driver-bitforce.c
index 75dc432..f42faa3 100644
--- a/driver-bitforce.c
+++ b/driver-bitforce.c
@@ -84,6 +84,9 @@ static bool bitforce_detect_one(const char *devpath)
 	bitforce->deven = DEV_ENABLED;
 	bitforce->threads = 1;
 	bitforce->sleep_ms = BITFORCE_SLEEP_MS;
+	/* Initially enable support for nonce range and disable it later if it
+	 * fails */
+	bitforce->nonce_range = true;
 
 	if (likely((!memcmp(pdevbuf, ">>>ID: ", 7)) && (s = strstr(pdevbuf + 3, ">>>")))) {
 		s[0] = '\0';
@@ -201,9 +204,6 @@ void bitforce_init(struct cgpu_info *bitforce)
 		bitforce->name = strdup(pdevbuf + 7);
 	}
 
-	/* Initially enable support for nonce range and disable it later if it
-	 * fails */
-	bitforce->nonce_range = true;
 	bitforce->device_fd = fdDev;
 	bitforce->sleep_ms = BITFORCE_SLEEP_MS;