mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-26 11:42:09 +00:00
nyx: adhere to fan driver changes
This commit is contained in:
parent
8b4f776c9d
commit
11262c2112
1 changed files with 2 additions and 9 deletions
|
@ -1319,15 +1319,8 @@ static void _update_status_bar(void *params)
|
||||||
max17050_get_property(MAX17050_Current, &batt_curr);
|
max17050_get_property(MAX17050_Current, &batt_curr);
|
||||||
|
|
||||||
// Enable fan if more than 41 oC.
|
// Enable fan if more than 41 oC.
|
||||||
u32 soc_temp_dec = (soc_temp >> 8);
|
u32 soc_temp_dec = soc_temp >> 8;
|
||||||
if (soc_temp_dec > 51)
|
fan_set_from_temp(soc_temp_dec);
|
||||||
set_fan_duty(102);
|
|
||||||
else if (soc_temp_dec > 46)
|
|
||||||
set_fan_duty(76);
|
|
||||||
else if (soc_temp_dec > 41)
|
|
||||||
set_fan_duty(51);
|
|
||||||
else if (soc_temp_dec < 40)
|
|
||||||
set_fan_duty(0);
|
|
||||||
|
|
||||||
if (!label)
|
if (!label)
|
||||||
label = (char *)malloc(512);
|
label = (char *)malloc(512);
|
||||||
|
|
Loading…
Reference in a new issue