fan speed control did not work as intended. Is working now.

This commit is contained in:
Tristan Smith 2024-03-21 22:32:43 -04:00
parent 3b50ebbf86
commit 759d798ff1

View file

@ -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...")