From 9a9759e2cfea3de602dda3053c1a4a46005abeb1 Mon Sep 17 00:00:00 2001 From: djepson1 Date: Thu, 5 Oct 2017 15:59:25 -0500 Subject: Sync: Improved range checking for offset measurements. --- mpm/python/usrp_mpm/cores/tdc_sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mpm/python') 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( -- cgit v1.2.3