From e9985d50b5eb1e43822ee33e7597e52da54def57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Wo=C5=BAniak?= Date: Thu, 29 Jul 2021 10:28:13 +0200 Subject: [PATCH] Update main.rs --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 19e6087..1d1ef0b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -308,7 +308,7 @@ fn service(config: Config) -> std::io::Result<()> { continue; } - if let Err(e) = controller.hw_mon.set_speed(target_pwm) { + if let Err(e) = controller.hw_mon.set_speed(target_pwm as f32) { log::error!("Failed to change speed to {}. {:?}", target_pwm, e); } controller.last_temp = gpu_temp;