diff --git a/src/bin/steamosctl.rs b/src/bin/steamosctl.rs index 60e8f1a..212396f 100644 --- a/src/bin/steamosctl.rs +++ b/src/bin/steamosctl.rs @@ -220,7 +220,8 @@ async fn main() -> Result<()> { Commands::GetAlsCalibrationGain => { let proxy = AmbientLightSensor1Proxy::new(&conn).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 => { let proxy = Manager2Proxy::new(&conn).await?; diff --git a/src/proxy/ambient_light_sensor1.rs b/src/proxy/ambient_light_sensor1.rs index 2b33d1b..3fe6310 100644 --- a/src/proxy/ambient_light_sensor1.rs +++ b/src/proxy/ambient_light_sensor1.rs @@ -19,10 +19,7 @@ use zbus::proxy; assume_defaults = true )] trait AmbientLightSensor1 { - /// GetAlsIntegrationTimeFileDescriptor method - fn get_als_integration_time_file_descriptor(&self) -> zbus::Result; - /// AlsCalibrationGain property #[zbus(property)] - fn als_calibration_gain(&self) -> zbus::Result; + fn als_calibration_gain(&self) -> zbus::Result>; }