From 6a26ba4397b3fc37b57609dde6a14c8f9be81a1b Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Sat, 16 Nov 2024 16:43:18 +0200 Subject: [PATCH] fix read sensor data example --- examples/read-sensor-data/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)?;