Browse Source

Merge branch 'mm_init_clock' into bfgminer

Luke Dashjr 13 years ago
parent
commit
96c8742cae
1 changed files with 4 additions and 0 deletions
  1. 4 0
      driver-modminer.c

+ 4 - 0
driver-modminer.c

@@ -493,6 +493,10 @@ modminer_process_results(struct thr_info*thr)
 				++state->good_share_counter;
 				++state->good_share_counter;
 				submit_nonce(thr, work, nonce);
 				submit_nonce(thr, work, nonce);
 			}
 			}
+			else
+			if (unlikely((!state->good_share_counter) && nonce == 0xffffff00))
+				// Firmware returns 0xffffff00 immediately if we set clockspeed too high; but it's not a hw error and shouldn't affect future downclocking
+				modminer_reduce_clock(thr, true);
 			else {
 			else {
 				++hw_errors;
 				++hw_errors;
 				if (++modminer->hw_errors * 100 > 1000 + state->good_share_counter)
 				if (++modminer->hw_errors * 100 > 1000 + state->good_share_counter)