aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/b100/b100_impl.cpp
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2013-11-13 07:00:07 -0800
committerNicholas Corgan <nick.corgan@ettus.com>2013-11-13 07:00:07 -0800
commitad8b21377d1d50f42025c16f588ac00977275418 (patch)
tree438ae8e4b47181260874c233f817ec35caeab600 /host/lib/usrp/b100/b100_impl.cpp
parent402a39feb2600c2f366b8218ebd4c6b8562b4af4 (diff)
parent6bb62ea374849e36c927be64dbf408c065bc9e8b (diff)
downloaduhd-ad8b21377d1d50f42025c16f588ac00977275418.tar.gz
uhd-ad8b21377d1d50f42025c16f588ac00977275418.tar.bz2
uhd-ad8b21377d1d50f42025c16f588ac00977275418.zip
Merge branch 'maint' into ncorgan/images_downloader_fixes
Diffstat (limited to 'host/lib/usrp/b100/b100_impl.cpp')
-rw-r--r--host/lib/usrp/b100/b100_impl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/host/lib/usrp/b100/b100_impl.cpp b/host/lib/usrp/b100/b100_impl.cpp
index c4d050242..138d328aa 100644
--- a/host/lib/usrp/b100/b100_impl.cpp
+++ b/host/lib/usrp/b100/b100_impl.cpp
@@ -295,12 +295,14 @@ b100_impl::b100_impl(const device_addr_t &device_addr){
_tree->create<std::string>(rx_codec_path / "name").set("ad9522");
_tree->create<meta_range_t>(rx_codec_path / "gains/pga/range").set(b100_codec_ctrl::rx_pga_gain_range);
_tree->create<double>(rx_codec_path / "gains/pga/value")
- .coerce(boost::bind(&b100_impl::update_rx_codec_gain, this, _1));
+ .coerce(boost::bind(&b100_impl::update_rx_codec_gain, this, _1))
+ .set(0.0);
_tree->create<std::string>(tx_codec_path / "name").set("ad9522");
_tree->create<meta_range_t>(tx_codec_path / "gains/pga/range").set(b100_codec_ctrl::tx_pga_gain_range);
_tree->create<double>(tx_codec_path / "gains/pga/value")
.subscribe(boost::bind(&b100_codec_ctrl::set_tx_pga_gain, _codec_ctrl, _1))
- .publish(boost::bind(&b100_codec_ctrl::get_tx_pga_gain, _codec_ctrl));
+ .publish(boost::bind(&b100_codec_ctrl::get_tx_pga_gain, _codec_ctrl))
+ .set(0.0);
////////////////////////////////////////////////////////////////////
// and do the misc mboard sensors