From 759d798ff17da75cf82403389075b3a4214564cc Mon Sep 17 00:00:00 2001 From: Tristan Smith Date: Thu, 21 Mar 2024 22:32:43 -0400 Subject: [PATCH] fan speed control did not work as intended. Is working now. --- server.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server.py b/server.py index c942df0..f7b8e13 100644 --- a/server.py +++ b/server.py @@ -23,8 +23,7 @@ def power_off(): def set_fan_speed(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(fan_speed_value)}") + execute_ipmi_command(f"raw 0x30 0x30 0x02 0xff {hex(speed)}") def enable_dynamic_fan_control(): print("Enabling dynamic fan control...")