Update main.rs

This commit is contained in:
Adrian Woźniak 2021-07-29 10:32:21 +02:00 committed by GitHub
parent e9985d50b5
commit 20214db390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;