Show periods per DFT in GUI.

This commit is contained in:
2025-10-07 12:59:28 +02:00
parent e71b02477a
commit 26e9c4dcab
4 changed files with 44 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ use postcard_rpc::{
};
use std::convert::Infallible;
use bioz_icd_rs::{
GetUniqueIdEndpoint, PingEndpoint, SetGreenLedEndpoint, StartMultiImpedance, StartMultiImpedanceEndpoint, StartSingleImpedance, StartSingleImpedanceEndpoint, StopSingleImpedanceEndpoint
GetUniqueIdEndpoint, InitImpedanceResult, PingEndpoint, SetGreenLedEndpoint, StartMultiImpedance, StartMultiImpedanceEndpoint, StartSingleImpedance, StartSingleImpedanceEndpoint, StopSingleImpedanceEndpoint
};
use crate::icd::{IcdDftNum, NumberOfPoints};
@@ -66,11 +66,11 @@ impl WorkbookClient {
&self,
frequency: u32,
dft_number: IcdDftNum,
) -> Result<(), WorkbookError<Infallible>> {
self.client
) -> Result<InitImpedanceResult, WorkbookError<Infallible>> {
let response = self.client
.send_resp::<StartSingleImpedanceEndpoint>(&StartSingleImpedance { update_frequency: 60, sinus_frequency: frequency, dft_number})
.await?;
Ok(())
Ok(response)
}
pub async fn start_impedancemeter_multi(