This commit is contained in:
Jan Luca 2025-12-22 12:53:17 +01:00 committed by Ashley Wulber
parent a58d697d31
commit 70d254bbae

View file

@ -94,7 +94,7 @@ pub trait Device {
fn charge_start_threshold(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn charge_threshold_enabled(&self) -> zbus::Result<u32>;
fn charge_threshold_enabled(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn charge_threshold_settings_supported(&self) -> zbus::Result<u32>;
@ -183,13 +183,10 @@ pub trait Device {
#[zbus(property)]
fn voltage_min_design(&self) -> zbus::Result<f64>;
#[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<Vec<u32, f64, u32>>;