Browse Source

Bugfix: bitforce: Retry ZGX until device is NOT busy

Luke Dashjr 13 years ago
parent
commit
b1508105e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-bitforce.c

+ 1 - 1
driver-bitforce.c

@@ -185,7 +185,7 @@ void bitforce_init(struct cgpu_info *bitforce)
 			applog(LOG_ERR, "BFL%i: Error reading (ZGX)", bitforce->device_id);
 			applog(LOG_ERR, "BFL%i: Error reading (ZGX)", bitforce->device_id);
 			return;
 			return;
 		}
 		}
-	} while (!strstr(pdevbuf, "BUSY"));
+	} while (strstr(pdevbuf, "BUSY"));
 
 
 	if (unlikely(!strstr(pdevbuf, "SHA256"))) {
 	if (unlikely(!strstr(pdevbuf, "SHA256"))) {
 		mutex_unlock(&bitforce->device_mutex);
 		mutex_unlock(&bitforce->device_mutex);