Browse Source

Bugfix: modminer: Return failure to change frequency when device reports it

Luke Dashjr 13 years ago
parent
commit
056d63153a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-modminer.c

+ 2 - 0
driver-modminer.c

@@ -336,6 +336,8 @@ modminer_change_clock(struct thr_info*thr, bool needlock, signed char delta)
 
 	if (buf[0])
 		state->dclk.freqM = clk / 2;
+	else
+		return false;
 
 	return true;
 }