diff --git a/examples/read-sensor-data/src/main.rs b/examples/read-sensor-data/src/main.rs index bfbcf3e..e79e9f6 100644 --- a/examples/read-sensor-data/src/main.rs +++ b/examples/read-sensor-data/src/main.rs @@ -28,7 +28,7 @@ fn main() -> Result<(), anyhow::Error> { let profile_dur = dev.get_profile_duration(&settings.0)?; info!("Profile duration {:?}", profile_dur); info!("Setting sensor settings"); - dev.set_sensor_settings(&mut delayer, settings)?; + dev.set_sensor_settings(&mut delayer, &settings)?; info!("Setting forced power modes"); dev.set_sensor_mode(&mut delayer, PowerMode::ForcedMode)?;