mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
fix: restore TDP values
This commit is contained in:
@@ -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(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user