From d6d4ac861e61480d3cd8fe7510bda28d8684198c Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 6 Jun 2017 19:44:21 -0700 Subject: eiscat: Unset initialized-flag when ref clock freq is changed --- mpm/python/usrp_mpm/dboard_manager/eiscat.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mpm/python/usrp_mpm/dboard_manager/eiscat.py') diff --git a/mpm/python/usrp_mpm/dboard_manager/eiscat.py b/mpm/python/usrp_mpm/dboard_manager/eiscat.py index adbbd848f..10806dfb1 100644 --- a/mpm/python/usrp_mpm/dboard_manager/eiscat.py +++ b/mpm/python/usrp_mpm/dboard_manager/eiscat.py @@ -658,12 +658,13 @@ class EISCAT(DboardManagerBase): """ Call this to notify the daughterboard about a change in reference clock """ - self.ref_clock_freq = freq - if self.initialized: + if self.initialized and freq != self.ref_clock_freq: self.log.warning( "Attempting to update external reference clock frequency " "after initialization! This will only take effect after " - "the daughterboard is re-initialized." + "the daughterboard is re-initialized. Unsetting init flag now." ) + self.initialized = False + self.ref_clock_freq = freq -- cgit v1.2.3