mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Split fan-curve config to own file
This commit is contained in:
@@ -10,15 +10,12 @@ const CONFIG_FAN_FILE: &str = "fan_curves.conf";
|
||||
pub struct ProfileConfig {
|
||||
/// For restore on boot
|
||||
pub active_profile: Profile,
|
||||
/// States to restore
|
||||
pub fan_curves: Option<FanCurveProfiles>,
|
||||
}
|
||||
|
||||
impl StdConfig for ProfileConfig {
|
||||
fn new() -> Self {
|
||||
Self {
|
||||
active_profile: Profile::Balanced,
|
||||
fan_curves: None,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,4 +36,4 @@ impl StdConfig for FanCurveProfiles {
|
||||
}
|
||||
}
|
||||
|
||||
impl StdConfigLoad1<ProfileConfig> for FanCurveProfiles {}
|
||||
impl StdConfigLoad1<ProfileConfig> for FanCurveProfiles {}
|
||||
|
||||
Reference in New Issue
Block a user