From 9de08f85c67f93bae6938a8b2c8ef1015ab989c1 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 9 May 2018 10:57:00 +0200 Subject: [PATCH] firmware/ad9154: reduce verbosity of dac_sysref_cfg --- artiq/firmware/libboard_artiq/ad9154.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/artiq/firmware/libboard_artiq/ad9154.rs b/artiq/firmware/libboard_artiq/ad9154.rs index ee8c7f80c..7366d9ce5 100644 --- a/artiq/firmware/libboard_artiq/ad9154.rs +++ b/artiq/firmware/libboard_artiq/ad9154.rs @@ -623,7 +623,9 @@ fn dac_sysref_cfg(dacno: u8) { let sync_error = ((read(ad9154_reg::SYNC_CURRERR_L) as u16) | ((read(ad9154_reg::SYNC_CURRERR_H) as u16) << 8)) & 0x1ff; - info!(" phase: {}, sync error: {}", phase, sync_error); + if sync_error != sync_error_last { + info!(" phase: {}, sync error: {}", phase, sync_error); + } if sync_error != 0 { if phase_min_found { if sync_error != sync_error_last {