Fix incorrect power profile support validation.

Before this patch power profile support validation used wrong flag from PlatformProfileFunctions struct.
This commit is contained in:
Alexander Narsudinov
2021-11-07 15:03:20 +03:00
parent 38d047cb8a
commit ca463a2944

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());
}