File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 11"""
2- Thermal engine commands. Note that there are two implementations.
3- We'll reuse the command number, but the data and behavior is incompatible.
4-
5- Version 0 is what originally shipped on Link.
6-
7- Version 1 separates the CPU thermal limits from the fan control.
2+ Thermal engine commands.
83"""
94
105from typing import Final
@@ -30,11 +25,11 @@ def thermal_get_thresholds(
3025 ec : CrosEcClass , sensor_num : int , adjust : int | float = - 273
3126) -> dict [str , list [int | float ] | int | float ]:
3227 """
33- Get the temperature thresholds for a given sensor.
28+ Get the temperature threshold configuration for a given sensor.
3429 :param ec: The CrOS_EC object.
3530 :param sensor_num: The sensor number.
3631 :param adjust: The adjustment to apply to the temperature. Default is -273 to convert from Kelvin to Celsius.
37- :return: A list of tuples containing the (warn, high, halt) thresholds .
32+ :return: A dictionary containing the threshold configuration .
3833 """
3934 data = struct .pack ("<I" , sensor_num )
4035 thresh_count : Final = EcTempThresholds .EC_TEMP_THRESH_COUNT .value
You can’t perform that action at this time.
0 commit comments