Included setting dft number from gui.

This commit is contained in:
2025-09-12 22:40:55 +02:00
parent d9477626e1
commit beefe733c0
5 changed files with 46 additions and 12 deletions

View File

@@ -78,8 +78,8 @@ async fn main() {
.subscribe_multi::<icd::ImpedanceOutputTopic>(8)
.await
.unwrap();
client.start_impedancemeter(freq).await.unwrap();
println!("Started!");
client.start_impedancemeter(freq, bioz_icd_rs::IcdDftNum::Num2048).await.unwrap();
println!("Started with dft_num 2048!");
let dur = Duration::from_millis(dur.into());
let start = Instant::now();
@@ -97,8 +97,8 @@ async fn main() {
};
match client.start_impedancemeter(freq).await {
Ok(_) => println!("Started!"),
match client.start_impedancemeter(freq, bioz_icd_rs::IcdDftNum::Num2048).await {
Ok(_) => println!("Started with dft_num 2048!"),
Err(e) => println!("Error starting impedancemeter: {:?}", e),
};