Skip to content

Commit c23f67f

Browse files
committed
Minor changes to thermal.py
1 parent 15e534e commit c23f67f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

cros_ec_python/commands/thermal.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
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

105
from 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

0 commit comments

Comments
 (0)