Merge branch 'fix/platform-functions/profile-support' into 'main'

Fix incorrect power profile support validation.

See merge request asus-linux/asusctl!89
This commit is contained in:
Luke Jones
2021-11-12 00:23:22 +00:00

View File

@@ -415,7 +415,7 @@ fn handle_profile(
supported: &PlatformProfileFunctions,
cmd: &ProfileCommand,
) -> Result<(), Box<dyn std::error::Error>> {
if !supported.fan_curves {
if !supported.platform_profile {
println!("Profiles not supported by either this kernel or by the laptop.");
return Err(ProfileError::NotSupported.into());
}