Browse Source

bitfury: Workaround corruption by looking for matches rather than changes

Luke Dashjr 12 years ago
parent
commit
74e79abc39
1 changed files with 2 additions and 3 deletions
  1. 2 3
      driver-bitfury.c

+ 2 - 3
driver-bitfury.c

@@ -456,17 +456,16 @@ void bitfury_do_io(struct thr_info *thr)
 		job_start_complete(thr);
 	}
 	
-	for (n = 1; newbuf[n] != oldbuf[n]; ++n)
+	for (n = 0; newbuf[n] == oldbuf[n]; ++n)
 	{
 		if (unlikely(n >= 0xf))
 		{
 			inc_hw_errors2(thr, NULL, NULL);
-			applog(LOG_DEBUG, "%"PRIpreprv": Mismatch of previous 2 nonces, ignoring response",
+			applog(LOG_DEBUG, "%"PRIpreprv": Full result match, ignoring response",
 			       proc->proc_repr);
 			goto out;
 		}
 	}
-	--n;
 	
 	if (n)
 	{