Browse Source

modminer: Reset clocks to maximum when attempting to reduce below 178 MHz

Luke Dashjr 13 years ago
parent
commit
6ba9c23369
1 changed files with 3 additions and 2 deletions
  1. 3 2
      driver-modminer.c

+ 3 - 2
driver-modminer.c

@@ -347,8 +347,9 @@ modminer_reduce_clock(struct thr_info*thr, bool needlock)
 {
 	struct modminer_fpga_state *state = thr->cgpu_data;
 
-	if (state->clock <= 100)
-		return false;
+	if (state->clock <= 178)
+		state->clock = state->max_clock;
+	else
 
 	state->clock -= 2;