From 0b1b37d01ca8526d982a7c145583116428cc7634 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 14 Sep 2011 00:49:45 -0400 Subject: usrp: fix string mapping for PPS_NEG clock config --- host/lib/usrp/multi_usrp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index 1a1bd0967..2749c4752 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -368,7 +368,6 @@ public: case clock_config_t::PPS_MIMO: clock_source = "mimo"; break; default: clock_source = "unknown"; } - if (clock_source == "external" and clock_config.pps_polarity == clock_config_t::PPS_NEG) clock_source = "_external_"; _tree->access(mb_root(mboard) / "clock_source" / "value").set(clock_source); //set the time source @@ -379,6 +378,7 @@ public: case clock_config_t::PPS_MIMO: time_source = "mimo"; break; default: time_source = "unknown"; } + if (clock_source == "external" and clock_config.pps_polarity == clock_config_t::PPS_NEG) time_source = "_external_"; _tree->access(mb_root(mboard) / "time_source" / "value").set(time_source); return; } -- cgit v1.2.3