mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Begin syncing changes with patch series
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use log::{error, warn};
|
||||
use rog_profiles::fan_curves::FanCurveSet;
|
||||
use rog_profiles::{FanCurves, Profile};
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
use std::fs::{File, OpenOptions};
|
||||
@@ -22,10 +23,11 @@ impl ProfileConfig {
|
||||
fan_curves: None,
|
||||
};
|
||||
|
||||
if FanCurves::is_fan_curves_supported() {
|
||||
let mut curves = FanCurves::default();
|
||||
curves.update_from_platform();
|
||||
platform.fan_curves = Some(curves);
|
||||
if let Ok(res) = FanCurveSet::is_supported() {
|
||||
if res {
|
||||
let mut curves = FanCurves::default();
|
||||
platform.fan_curves = Some(curves);
|
||||
}
|
||||
}
|
||||
|
||||
platform
|
||||
|
||||
Reference in New Issue
Block a user