2
0
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:
Florent Kermarrec 2018-06-04 14:03:26 +02:00
parent bb87976d4f
commit 925b47b077

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,