mirror of
https://github.com/CTCaer/hekate
synced 2024-11-13 23:36:33 +00:00
nyx: finer control of fan when temp is high
This commit is contained in:
parent
6e6f5f8eed
commit
e96e74c72a
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2023 CTCaer
|
||||
* Copyright (c) 2018-2024 CTCaer
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
|
@ -1330,11 +1330,13 @@ static void _update_status_bar(void *params)
|
|||
max17050_get_property(MAX17050_VCELL, &batt_volt);
|
||||
max17050_get_property(MAX17050_Current, &batt_curr);
|
||||
|
||||
// Enable fan if more than 46 oC.
|
||||
// Enable fan if more than 41 oC.
|
||||
u32 soc_temp_dec = (soc_temp >> 8);
|
||||
if (soc_temp_dec > 51)
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue