Update main.rs
This commit is contained in:
parent
c54bdc0af0
commit
e9985d50b5
@ -308,7 +308,7 @@ fn service(config: Config) -> std::io::Result<()> {
|
|||||||
continue;
|
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);
|
log::error!("Failed to change speed to {}. {:?}", target_pwm, e);
|
||||||
}
|
}
|
||||||
controller.last_temp = gpu_temp;
|
controller.last_temp = gpu_temp;
|
||||||
|
Loading…
Reference in New Issue
Block a user