From af29e2e876b99087be5ca04621cd3945aa561477 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 21 Dec 2023 14:16:26 +0900 Subject: [PATCH] guest_rust: update the hardcoded default sensor name --- guest_rust/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guest_rust/src/lib.rs b/guest_rust/src/lib.rs index f29de89..9ecc938 100644 --- a/guest_rust/src/lib.rs +++ b/guest_rust/src/lib.rs @@ -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::("sampling-rate")?; println!("pool name {}", pool_name); println!("sensor device name {}", device_name);