Typo: thershold -> threshold (#2230)
old-commit-hash: c35af4b6198e81cac09db8a424f5780ca33c085c
This commit is contained in:
@@ -124,7 +124,7 @@ _TEMP_THRS_L = [42.5, 57.5, 72.5, 10000]
|
||||
# fan speed options
|
||||
_FAN_SPEEDS = [0, 16384, 32768, 65535]
|
||||
# max fan speed only allowed if battery is hot
|
||||
_BAT_TEMP_THERSHOLD = 45.
|
||||
_BAT_TEMP_THRESHOLD = 45.
|
||||
|
||||
|
||||
def handle_fan_eon(max_cpu_temp, bat_temp, fan_speed, ignition):
|
||||
@@ -138,7 +138,7 @@ def handle_fan_eon(max_cpu_temp, bat_temp, fan_speed, ignition):
|
||||
# update speed if using the low thresholds results in fan speed decrement
|
||||
fan_speed = new_speed_l
|
||||
|
||||
if bat_temp < _BAT_TEMP_THERSHOLD:
|
||||
if bat_temp < _BAT_TEMP_THRESHOLD:
|
||||
# no max fan speed unless battery is hot
|
||||
fan_speed = min(fan_speed, _FAN_SPEEDS[-2])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user