mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 09:23:19 +01:00
asusd: single line fix for profile switching
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user