From 925b47b077b5f84e2ec7a0c1b222afe6f7b249f9 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 4 Jun 2018 14:03:26 +0200 Subject: [PATCH] firmware/ad9154: reset the dac between each configuration attempt --- artiq/firmware/libboard_artiq/ad9154.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/artiq/firmware/libboard_artiq/ad9154.rs b/artiq/firmware/libboard_artiq/ad9154.rs index 00b2364dd..ace248fda 100644 --- a/artiq/firmware/libboard_artiq/ad9154.rs +++ b/artiq/firmware/libboard_artiq/ad9154.rs @@ -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,