mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-17 13:22:53 +01:00
Toggle auto_fan_speed without reboot (#580)
If you can change the fan speed immediately, so should the enabling or disabling of auto fan speed.
This commit is contained in:
parent
82029eb5ac
commit
052b8bfda6
@ -88,8 +88,6 @@ void POWER_MANAGEMENT_task(void * pvParameters)
|
||||
//int last_frequency_increase = 0;
|
||||
//uint16_t frequency_target = nvs_config_get_u16(NVS_CONFIG_ASIC_FREQ, CONFIG_ASIC_FREQUENCY);
|
||||
|
||||
uint16_t auto_fan_speed = nvs_config_get_u16(NVS_CONFIG_AUTO_FAN_SPEED, 1);
|
||||
|
||||
switch (GLOBAL_STATE->device_model) {
|
||||
case DEVICE_MAX:
|
||||
case DEVICE_ULTRA:
|
||||
@ -245,7 +243,7 @@ void POWER_MANAGEMENT_task(void * pvParameters)
|
||||
}
|
||||
|
||||
|
||||
if (auto_fan_speed == 1) {
|
||||
if (nvs_config_get_u16(NVS_CONFIG_AUTO_FAN_SPEED, 1) == 1) {
|
||||
|
||||
power_management->fan_perc = (float)automatic_fan_speed(power_management->chip_temp_avg, GLOBAL_STATE);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user