Browse Source

bitforce: Enable changing voltage from the Manage TUI

Luke Dashjr 11 years ago
parent
commit
4071e93632
1 changed files with 3 additions and 0 deletions
  1. 3 0
      driver-bitforce.c

+ 3 - 0
driver-bitforce.c

@@ -1838,6 +1838,7 @@ void bitforce_tui_wlogprint_choices(struct cgpu_info *cgpu)
 	struct bitforce_data *data = cgpu->device_data;
 	struct bitforce_data *data = cgpu->device_data;
 	if (data->supports_fanspeed)
 	if (data->supports_fanspeed)
 		wlogprint("[F]an control ");
 		wlogprint("[F]an control ");
+	wlogprint("[V]oltage ");
 }
 }
 
 
 static
 static
@@ -1872,6 +1873,8 @@ const char *bitforce_tui_handle_choice(struct cgpu_info *cgpu, int input)
 			mutex_unlock(mutexp);
 			mutex_unlock(mutexp);
 			return replybuf;
 			return replybuf;
 		}
 		}
+		case 'v': case 'V':
+			return proc_set_device_tui_wrapper(cgpu, NULL, bitforce_set_voltage, "Set voltage (0.54-0.75 V)", "Requested voltage change");
 	}
 	}
 	return NULL;
 	return NULL;
 }
 }