asusd: single line fix for profile switching

This commit is contained in:
Luke Jones
2025-03-04 09:21:52 +13:00
parent 3a900f23fe
commit 4cd9918e1a
4 changed files with 21 additions and 16 deletions

View File

@@ -374,7 +374,7 @@ impl CtrlPlatform {
self.config.lock().await.write();
let choices = self.platform.get_platform_profile_choices()?;
if !choices.contains(&PlatformProfile::LowPower) {
if !choices.contains(&policy) {
return Err(FdoErr::NotSupported(format!(
"RogPlatform: platform_profile: {} not supported",
policy