aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2014-12-08 20:20:15 +0100
committerMartin Braun <martin.braun@ettus.com>2014-12-08 20:20:15 +0100
commit82ca8a921cae477275fdcda8df87a76784587251 (patch)
tree7da92f95311ea31b146b9fb4a8b609063fecb1bb /host/lib
parent12d91d67187e72c189c42970f3bc1323c1977a4a (diff)
parent7eb18c621180fab669df591191d7771e89ed8ffa (diff)
downloaduhd-82ca8a921cae477275fdcda8df87a76784587251.tar.gz
uhd-82ca8a921cae477275fdcda8df87a76784587251.tar.bz2
uhd-82ca8a921cae477275fdcda8df87a76784587251.zip
Merge branch 'maint'
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/b200/b200_impl.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp
index b3c190c50..b2f0d8d3e 100644
--- a/host/lib/usrp/b200/b200_impl.cpp
+++ b/host/lib/usrp/b200/b200_impl.cpp
@@ -833,6 +833,10 @@ void b200_impl::set_mb_eeprom(const uhd::usrp::mboard_eeprom_t &mb_eeprom)
void b200_impl::update_clock_source(const std::string &source)
{
+ // present the PLL with a valid 10 MHz signal before switching its reference
+ _gpio_state.ref_sel = (source == "gpsdo")? 1 : 0;
+ this->update_gpio_state();
+
if (source == "internal"){
_adf4001_iface->set_lock_to_ext_ref(false);
}
@@ -843,9 +847,6 @@ void b200_impl::update_clock_source(const std::string &source)
} else {
throw uhd::key_error("update_clock_source: unknown source: " + source);
}
-
- _gpio_state.ref_sel = (source == "gpsdo")? 1 : 0;
- this->update_gpio_state();
}
void b200_impl::update_time_source(const std::string &source)