mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Fix loading of fan curves
Closes #402 Signed-off-by: Luke D. Jones <luke@ljones.dev>
This commit is contained in:
@@ -87,11 +87,7 @@ impl CtrlPlatformProfile {
|
||||
info!("{MOD_NAME}: Device has fan curves available");
|
||||
let fan_config = FanCurveConfig::new();
|
||||
// Only do defaults if the config doesn't already exist
|
||||
if !fan_config.file_path().exists()
|
||||
|| fan_config.balanced.is_empty()
|
||||
|| fan_config.performance.is_empty()
|
||||
|| fan_config.quiet.is_empty()
|
||||
{
|
||||
if !fan_config.file_path().exists() {
|
||||
info!("{MOD_NAME}: Fetching default fan curves");
|
||||
controller.fan_curves = Some(FanCurves {
|
||||
config_file: fan_config,
|
||||
|
||||
Reference in New Issue
Block a user