summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-09-14 00:49:45 -0400
committerJosh Blum <josh@joshknows.com>2011-09-14 00:49:45 -0400
commitff40f2da8aa67f78075b5b15d2d26a721ccbeaa3 (patch)
tree47f7f0219d273832c778b2764a3cf62fdaea3fc5 /host/lib/usrp
parent344d2aa08642196f445d35f7586aae2f66ecfce2 (diff)
downloaduhd-ff40f2da8aa67f78075b5b15d2d26a721ccbeaa3.tar.gz
uhd-ff40f2da8aa67f78075b5b15d2d26a721ccbeaa3.tar.bz2
uhd-ff40f2da8aa67f78075b5b15d2d26a721ccbeaa3.zip
usrp: fix string mapping for PPS_NEG clock config
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/multi_usrp.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::string>(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<std::string>(mb_root(mboard) / "time_source" / "value").set(time_source);
return;
}