mirror of
https://github.com/hubaldv/bioz-firmware-rs.git
synced 2025-12-06 05:01:18 +00:00
Fix starting bug showing cal value.
This commit is contained in:
@@ -368,9 +368,6 @@ impl ImpedanceSetup {
|
|||||||
// Configure LP DAC and TIA
|
// Configure LP DAC and TIA
|
||||||
self.common_mode_output_enable(true).await.unwrap();
|
self.common_mode_output_enable(true).await.unwrap();
|
||||||
|
|
||||||
// Reset FIFO
|
|
||||||
self.ad5940.clear_and_enable_fifo().await.unwrap();
|
|
||||||
|
|
||||||
// Set DFT number
|
// Set DFT number
|
||||||
self.dsp_config.as_mut().unwrap().dftnum(dft_number.into_dftnum());
|
self.dsp_config.as_mut().unwrap().dftnum(dft_number.into_dftnum());
|
||||||
self.ad5940.apply_dsp_config(self.dsp_config.as_ref().unwrap()).await.unwrap();
|
self.ad5940.apply_dsp_config(self.dsp_config.as_ref().unwrap()).await.unwrap();
|
||||||
@@ -401,6 +398,9 @@ impl ImpedanceSetup {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Reset FIFO
|
||||||
|
self.ad5940.clear_and_enable_fifo().await.unwrap();
|
||||||
|
|
||||||
// Configure switches
|
// Configure switches
|
||||||
let switch_config = SwitchConfig::default()
|
let switch_config = SwitchConfig::default()
|
||||||
.t9con(T9CON::T9Closed)
|
.t9con(T9CON::T9Closed)
|
||||||
|
|||||||
Reference in New Issue
Block a user