fix read sensor data example

This commit is contained in:
Denis-Cosmin Nutiu 2024-11-16 16:43:18 +02:00
parent cd6f7a34cd
commit 6a26ba4397

View file

@ -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)?;