Browse Source

Bugfix: bitforce: Correct fanspeed TUI setting

Luke Dashjr 12 years ago
parent
commit
46b8cb0923
1 changed files with 2 additions and 2 deletions
  1. 2 2
      driver-bitforce.c

+ 2 - 2
driver-bitforce.c

@@ -1356,12 +1356,12 @@ const char *bitforce_tui_handle_choice(struct cgpu_info *cgpu, int input)
 			int fanspeed;
 			char *intvar;
 
-			intvar = curses_input("Set fan speed (range 0-4 for low to fast or 5 for auto)");
+			intvar = curses_input("Set fan speed (range 0-5 for low to fast or 9 for auto)");
 			if (!intvar)
 				return "Invalid fan speed\n";
 			fanspeed = atoi(intvar);
 			free(intvar);
-			if (fanspeed < 0 || fanspeed > 5)
+			if ((fanspeed < 0 || fanspeed > 5) && fanspeed != 9)
 				return "Invalid fan speed\n";
 			
 			char cmd[4] = "Z0X";