75737de396
Reorganize code, add basic voltage manipulation, fix errors Reorganize code, add basic voltage manipulation, fix errors
19 lines
413 B
Rust
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);
|
|
}
|
|
}
|
|
}
|