diff options
author | Josh Blum <josh@joshknows.com> | 2011-07-02 09:32:00 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-07-02 09:32:00 -0700 |
commit | 4bcab9c56aad7e08bd392b82cc52ae2f4f5a830c (patch) | |
tree | a4a88f09a864e97dadddbfd4231e52eee77c1f02 /host/lib/usrp/multi_usrp.cpp | |
parent | 0e3240ec5680fff7597d209b795dd0bc603f9919 (diff) | |
download | uhd-4bcab9c56aad7e08bd392b82cc52ae2f4f5a830c.tar.gz uhd-4bcab9c56aad7e08bd392b82cc52ae2f4f5a830c.tar.bz2 uhd-4bcab9c56aad7e08bd392b82cc52ae2f4f5a830c.zip |
usrp: renamed ref_source to clock_source (terminology)
Diffstat (limited to 'host/lib/usrp/multi_usrp.cpp')
-rw-r--r-- | host/lib/usrp/multi_usrp.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index 06c965e2c..2f416d93a 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -347,15 +347,15 @@ public: void set_clock_config(const clock_config_t &clock_config, size_t mboard){ if (mboard != ALL_MBOARDS){ //set the reference source... - std::string ref_source; + std::string clock_source; switch(clock_config.ref_source){ - case clock_config_t::REF_INT: ref_source = "internal"; break; - case clock_config_t::PPS_SMA: ref_source = "external"; break; - case clock_config_t::PPS_MIMO: ref_source = "mimo"; break; - default: ref_source = "unknown"; + case clock_config_t::REF_INT: clock_source = "internal"; break; + case clock_config_t::PPS_SMA: clock_source = "external"; break; + case clock_config_t::PPS_MIMO: clock_source = "mimo"; break; + default: clock_source = "unknown"; } - if (ref_source == "external" and clock_config.pps_polarity == clock_config_t::PPS_NEG) ref_source = "_external_"; - _tree->access<std::string>(mb_root(mboard) / "ref_source" / "value").set(ref_source); + 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 std::string time_source; |