Browse Source

ztex: Silence false "unexpected" hardware errors, and don't count them as hw errors

Luke Dashjr 13 years ago
parent
commit
e7f325d96d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      driver-ztex.c

+ 1 - 0
driver-ztex.c

@@ -276,6 +276,7 @@ static uint64_t ztex_scanhash(struct thr_info *thr, struct work *work,
 						nonce = swab32(nonce);
 						nonce = swab32(nonce);
 #endif
 #endif
 						work->blk.nonce = 0xffffffff;
 						work->blk.nonce = 0xffffffff;
+						if ( (rv = test_nonce(work, nonce, false)) )
 						rv = submit_nonce(thr, work, nonce);
 						rv = submit_nonce(thr, work, nonce);
 						applog(LOG_DEBUG, "%s: submitted %0.8x %d", ztex->repr, nonce, rv);
 						applog(LOG_DEBUG, "%s: submitted %0.8x %d", ztex->repr, nonce, rv);
 					}
 					}