mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-28 20:53:35 +08:00
firmware/ad9154: reset the dac between each configuration attempt
This commit is contained in:
parent
bb87976d4f
commit
925b47b077
@ -613,6 +613,7 @@ fn dac_cfg(dacno: u8) -> Result<(), &'static str> {
|
||||
|
||||
fn dac_cfg_retry(dacno: u8) -> Result<(), &'static str> {
|
||||
for i in 0..99 {
|
||||
dac_reset(dacno);
|
||||
let outcome = dac_cfg(dacno);
|
||||
match outcome {
|
||||
Ok(_) => return outcome,
|
||||
|
Loading…
Reference in New Issue
Block a user