firmware/ad9154: reset the dac between each configuration attempt

This commit is contained in:
Florent Kermarrec 2018-06-04 14:03:26 +02:00
parent bb87976d4f
commit 925b47b077
1 changed files with 1 additions and 0 deletions

View File

@ -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,