Browse Source

Bugfix: bigpic: Ignore the bitfury chip's counter as best we can

Luke Dashjr 12 years ago
parent
commit
3e22ddfa2a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-bigpic.c

+ 2 - 0
driver-bigpic.c

@@ -186,6 +186,7 @@ static void bigpic_process_results(struct thr_info *thr, struct work *work)
 
 
 	uint32_t results[16*6];
 	uint32_t results[16*6];
 	uint32_t num_results;
 	uint32_t num_results;
+	int hwe = 0;
 
 
 	uint32_t m7    = *((uint32_t *)&work->data[64]);
 	uint32_t m7    = *((uint32_t *)&work->data[64]);
 	uint32_t ntime = *((uint32_t *)&work->data[68]);
 	uint32_t ntime = *((uint32_t *)&work->data[68]);
@@ -211,6 +212,7 @@ static void bigpic_process_results(struct thr_info *thr, struct work *work)
 		if (bitfury_fudge_nonce(work->midstate, m7, ntime, nbits, &nonce))
 		if (bitfury_fudge_nonce(work->midstate, m7, ntime, nbits, &nonce))
 			submit_nonce(thr, work, nonce);
 			submit_nonce(thr, work, nonce);
 		else
 		else
+		if (info->rx_buffer[i + 3] != '\xe0' || hwe++)
 			inc_hw_errors(thr, work, nonce);
 			inc_hw_errors(thr, work, nonce);
 	}
 	}
 }
 }