diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-06-06 19:44:21 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:59 -0800 |
commit | d6d4ac861e61480d3cd8fe7510bda28d8684198c (patch) | |
tree | aacfe1e3aea4cc8d49cf1197ae35cfdd9faa5afb /mpm | |
parent | c4c3b8d6b7ceabb66386c7db8d170e9a5504746b (diff) | |
download | uhd-d6d4ac861e61480d3cd8fe7510bda28d8684198c.tar.gz uhd-d6d4ac861e61480d3cd8fe7510bda28d8684198c.tar.bz2 uhd-d6d4ac861e61480d3cd8fe7510bda28d8684198c.zip |
eiscat: Unset initialized-flag when ref clock freq is changed
Diffstat (limited to 'mpm')
-rw-r--r-- | mpm/python/usrp_mpm/dboard_manager/eiscat.py | 7 |
1 files changed, 4 insertions, 3 deletions
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 |