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;