From fde2f3ba153c8db982b2f9856c1d51b1a4e0dfdd Mon Sep 17 00:00:00 2001 From: "jochen@g14" Date: Sat, 30 Mar 2024 21:19:55 +0100 Subject: [PATCH] Fixed issues with asusctl-slash command --- asusctl/src/main.rs | 1 + rog-dbus/src/zbus_slash.rs | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/asusctl/src/main.rs b/asusctl/src/main.rs index 1efe0ab7..8cb75df1 100644 --- a/asusctl/src/main.rs +++ b/asusctl/src/main.rs @@ -488,6 +488,7 @@ fn handle_slash( cmd.enabled.is_none() && cmd.brightness.is_none() && cmd.interval.is_none() && + cmd.slash_mode.is_none() && !cmd.list ) || cmd.help { diff --git a/rog-dbus/src/zbus_slash.rs b/rog-dbus/src/zbus_slash.rs index e58485a3..00b96e6d 100644 --- a/rog-dbus/src/zbus_slash.rs +++ b/rog-dbus/src/zbus_slash.rs @@ -10,25 +10,25 @@ trait Slash { /// EnableDisplay property #[zbus(property)] fn enabled(&self) -> zbus::Result; - #[zbus(property)] + // #[zbus(property)] fn set_enabled(&self, value: bool) -> zbus::Result<()>; /// Brightness property #[zbus(property)] fn brightness(&self) -> zbus::Result; - #[zbus(property)] + // #[zbus(property)] fn set_brightness(&self, value: u8) -> zbus::Result<()>; /// Interval property #[zbus(property)] fn interval(&self) -> zbus::Result; - #[zbus(property)] + // #[zbus(property)] fn set_interval(&self, value: u8) -> zbus::Result<()>; /// Slash modes property #[zbus(property)] fn slash_mode(&self) -> zbus::Result; - #[zbus(property)] + // #[zbus(property)] fn set_slash_mode(&self, value: SlashMode) -> zbus::Result<()>; }