diff options
author | djepson1 <daniel.jepson@ni.com> | 2017-10-05 15:59:25 -0500 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:04:02 -0800 |
commit | 9a9759e2cfea3de602dda3053c1a4a46005abeb1 (patch) | |
tree | 2e059ba3c23805117e1010aa1d0b8a456f5ffbfd /mpm | |
parent | 4e0600b00a053b23dadd02ac99d89db9d50e1f34 (diff) | |
download | uhd-9a9759e2cfea3de602dda3053c1a4a46005abeb1.tar.gz uhd-9a9759e2cfea3de602dda3053c1a4a46005abeb1.tar.bz2 uhd-9a9759e2cfea3de602dda3053c1a4a46005abeb1.zip |
Sync: Improved range checking for offset measurements.
Diffstat (limited to 'mpm')
-rw-r--r-- | mpm/python/usrp_mpm/cores/tdc_sync.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mpm/python/usrp_mpm/cores/tdc_sync.py b/mpm/python/usrp_mpm/cores/tdc_sync.py index e8e3262d1..ccedfcdcc 100644 --- a/mpm/python/usrp_mpm/cores/tdc_sync.py +++ b/mpm/python/usrp_mpm/cores/tdc_sync.py @@ -217,8 +217,8 @@ class ClockSynchronizer(object): high_bound = 1.0/self.ref_clk_freq + (1.0/self.radio_clk_freq)*5 if (current_value < low_bound) or (current_value > high_bound): self.log.error("Clock synchronizer measured a " - "current value of {:.3f} ns!".format( - current_value*1e9 + "current value of {:.3f} ns. Range is [{:.3f},{:.3f}] ns".format( + current_value*1e9, low_bound*1e9, high_bound*1e9 )) raise RuntimeError("TDC measurement out of range! " "Current value: {:.3f} ns.".format( |