diff --git a/upower/src/device.rs b/upower/src/device.rs index 9154361..b889e2e 100644 --- a/upower/src/device.rs +++ b/upower/src/device.rs @@ -94,7 +94,7 @@ pub trait Device { fn charge_start_threshold(&self) -> zbus::Result; #[zbus(property)] - fn charge_threshold_enabled(&self) -> zbus::Result; + fn charge_threshold_enabled(&self) -> zbus::Result; #[zbus(property)] fn charge_threshold_settings_supported(&self) -> zbus::Result; @@ -183,13 +183,10 @@ pub trait Device { #[zbus(property)] fn voltage_min_design(&self) -> zbus::Result; + #[zbus(signal)] fn enable_charge_threshold(&self, message: bool) -> zbus::Result<()>; - - // #[zbus(signal)] - // fn enable_charge_threshold(&self, charge_threshold: bool) -> zbus::Result<()>; - #[zbus(signal)] fn get_history(&self, type_: String, timespan: u32, resolution: u32) -> zbus::Result>;