amdgpud/amdfand/src/panic_handler.rs
Adrian Woźniak 75737de396
Better error messages, better error handling, improve temp config, move forward with voltage
Reorganize code, add basic voltage manipulation, fix errors

Reorganize code, add basic voltage manipulation, fix errors
2021-11-21 12:42:36 +01:00

19 lines
413 B
Rust

use crate::command::Fan;
use amdgpu::utils::hw_mons;
pub fn restore_automatic() {
for hw in hw_mons(true).unwrap_or_default() {
if let Err(error) = (Fan {
hw_mon: hw,
temp_inputs: vec![],
temp_input: None,
pwm_min: None,
pwm_max: None,
})
.write_automatic()
{
log::error!("{}", error);
}
}
}