From 20214db390fc1e75a2d0cccd9a13c5fce8b3bbee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Wo=C5=BAniak?= Date: Thu, 29 Jul 2021 10:32:21 +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 1d1ef0b..2aa19b9 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 as f32) { + if let Err(e) = controller.hw_mon.set_speed(target_pwm as f64) { log::error!("Failed to change speed to {}. {:?}", target_pwm, e); } controller.last_temp = gpu_temp;