fan speed control did not work as intended. Is working now.
This commit is contained in:
parent
3b50ebbf86
commit
759d798ff1
1 changed files with 1 additions and 2 deletions
|
@ -23,8 +23,7 @@ def power_off():
|
||||||
|
|
||||||
def set_fan_speed(speed):
|
def set_fan_speed(speed):
|
||||||
print(f"Setting fan speed to {speed}%...")
|
print(f"Setting fan speed to {speed}%...")
|
||||||
fan_speed_value = int((speed * 255) / 100)
|
execute_ipmi_command(f"raw 0x30 0x30 0x02 0xff {hex(speed)}")
|
||||||
execute_ipmi_command(f"raw 0x30 0x30 0x02 0xff {hex(fan_speed_value)}")
|
|
||||||
|
|
||||||
def enable_dynamic_fan_control():
|
def enable_dynamic_fan_control():
|
||||||
print("Enabling dynamic fan control...")
|
print("Enabling dynamic fan control...")
|
||||||
|
|
Loading…
Reference in a new issue