Skip to content

Commit

Permalink
guest_rust: update the hardcoded default sensor name
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Dec 26, 2023
1 parent 1b73a63 commit af29e2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion guest_rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ fn main2() -> Result<()> {
}
};
let pool_name = matches.opt_str("pool").unwrap_or("my-pool".to_string());
let device_name = matches.opt_str("sensor").unwrap_or("dummy".to_string());
let device_name = matches
.opt_str("sensor")
.unwrap_or("dummy:dummy".to_string());
let sampling_rate = matches.opt_get::<f32>("sampling-rate")?;
println!("pool name {}", pool_name);
println!("sensor device name {}", device_name);
Expand Down

0 comments on commit af29e2e

Please sign in to comment.