Skip to content

Commit

Permalink
Toggle auto_fan_speed without reboot (skot#580)
Browse files Browse the repository at this point in the history
If you can change the fan speed immediately, so should the enabling or disabling of auto fan speed.
  • Loading branch information
mutatrum authored Dec 13, 2024
1 parent 82029eb commit 052b8bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main/tasks/power_management_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 052b8bf

Please sign in to comment.