Browse Source

Merge commit 'b6a23d0' into bfgminer

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

+ 1 - 1
driver-bitforce.c

@@ -497,7 +497,7 @@ static int64_t bitforce_scanhash(struct thr_info *thr, struct work *work, int64_
 	if (ret)
 		ret = bitforce_get_result(thr, work);
 
-	if (!ret) {
+	if (ret == -1) {
 		ret = 0;
 		applog(LOG_ERR, "BFL%i: Comms error", bitforce->device_id);
 		bitforce->device_last_not_well = time(NULL);