diff options
author | Josh Blum <josh@joshknows.com> | 2011-09-14 00:49:45 -0400 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-09-14 14:02:10 -0400 |
commit | 0b1b37d01ca8526d982a7c145583116428cc7634 (patch) | |
tree | 86e3ae1d498675f295fd758f767de40b93ef045c | |
parent | ed0e38b2b2a0901296c6bb9619a6d6c405db0e28 (diff) | |
download | uhd-0b1b37d01ca8526d982a7c145583116428cc7634.tar.gz uhd-0b1b37d01ca8526d982a7c145583116428cc7634.tar.bz2 uhd-0b1b37d01ca8526d982a7c145583116428cc7634.zip |
usrp: fix string mapping for PPS_NEG clock config
-rw-r--r-- | host/lib/usrp/multi_usrp.cpp | 2 |
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; } |