Update main.rs

This commit is contained in:
Adrian Woźniak 2021-07-29 10:28:13 +02:00 committed by GitHub
parent c54bdc0af0
commit e9985d50b5
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) {
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;