fix: restore TDP values

This commit is contained in:
Denis Benato
2026-01-24 03:08:06 +01:00
parent fc75b88fab
commit 58db410ba4

View File

@@ -211,17 +211,24 @@ impl crate::Reloadable for AsusArmouryAttribute {
} }
}; };
match apply_value {
AttrValue::None => {
info!(
"No saved value for attribute {}: skipping.",
self.attr.name()
);
}
_ => {
info!("Applying value {apply_value:?} to attribute {name}");
self.attr.set_current_value(&apply_value).map_err(|e| { self.attr.set_current_value(&apply_value).map_err(|e| {
error!("Could not set {} value: {e:?}", self.attr.name()); error!("Could not set {name} value: {e:?}");
self.attr.base_path_exists(); self.attr.base_path_exists();
e e
})?; })?;
info!( info!("Restored asus-armoury setting {name} to {apply_value:?}");
"Restored asus-armoury setting {} to {:?}", }
self.attr.name(), }
apply_value
);
Ok(()) Ok(())
} }