Browse Source

Merge commit '4e2b107' into update_avalon_20130524

Luke Dashjr 12 years ago
parent
commit
d692e11ce6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-avalon.c

+ 1 - 1
driver-avalon.c

@@ -930,7 +930,7 @@ static int64_t avalon_scanhash(struct thr_info *thr)
 			       elapsed.tv_sec, elapsed.tv_usec);
 		}
 	}
-	if (result_wrong >= info->miner_count && ret != AVA_GETS_RESTART) {
+	if (result_wrong >= avalon_get_work_count && ret != AVA_GETS_RESTART) {
 		/* This mean FPGA controller gave all wrong results, so
 		 * try to reset the Avalon */
 		do_avalon_close(thr);