mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-08 07:30:36 -04:00
proxy: Update AmbientLightSensor1 definition
This commit is contained in:
parent
eb7a136834
commit
a54e3d0c55
2 changed files with 3 additions and 5 deletions
|
@ -220,7 +220,8 @@ async fn main() -> Result<()> {
|
||||||
Commands::GetAlsCalibrationGain => {
|
Commands::GetAlsCalibrationGain => {
|
||||||
let proxy = AmbientLightSensor1Proxy::new(&conn).await?;
|
let proxy = AmbientLightSensor1Proxy::new(&conn).await?;
|
||||||
let gain = proxy.als_calibration_gain().await?;
|
let gain = proxy.als_calibration_gain().await?;
|
||||||
println!("ALS calibration gain: {gain}");
|
let gains = gain.into_iter().map(|g| g.to_string()).join(", ");
|
||||||
|
println!("ALS calibration gain: {gains}");
|
||||||
}
|
}
|
||||||
Commands::GetHardwareCurrentlySupported => {
|
Commands::GetHardwareCurrentlySupported => {
|
||||||
let proxy = Manager2Proxy::new(&conn).await?;
|
let proxy = Manager2Proxy::new(&conn).await?;
|
||||||
|
|
|
@ -19,10 +19,7 @@ use zbus::proxy;
|
||||||
assume_defaults = true
|
assume_defaults = true
|
||||||
)]
|
)]
|
||||||
trait AmbientLightSensor1 {
|
trait AmbientLightSensor1 {
|
||||||
/// GetAlsIntegrationTimeFileDescriptor method
|
|
||||||
fn get_als_integration_time_file_descriptor(&self) -> zbus::Result<zbus::zvariant::OwnedFd>;
|
|
||||||
|
|
||||||
/// AlsCalibrationGain property
|
/// AlsCalibrationGain property
|
||||||
#[zbus(property)]
|
#[zbus(property)]
|
||||||
fn als_calibration_gain(&self) -> zbus::Result<f64>;
|
fn als_calibration_gain(&self) -> zbus::Result<Vec<f64>>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue