aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael West <michael.west@ettus.com>2013-10-28 12:45:37 -0700
committerMichael West <michael.west@ettus.com>2013-10-28 12:45:37 -0700
commit2b69ec848b20a2cf4b731a6a6fe57b6b9a6a5067 (patch)
tree4f2303d1825c0e8f2df034620135c6c546d2a1ac
parent44386f32b17ee74988178f9eb6d0b787b7863232 (diff)
downloaduhd-2b69ec848b20a2cf4b731a6a6fe57b6b9a6a5067.tar.gz
uhd-2b69ec848b20a2cf4b731a6a6fe57b6b9a6a5067.tar.bz2
uhd-2b69ec848b20a2cf4b731a6a6fe57b6b9a6a5067.zip
CID 1104309: Fixed uninitialized scalar.
-rw-r--r--host/lib/usrp/cores/tx_dsp_core_3000.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/host/lib/usrp/cores/tx_dsp_core_3000.cpp b/host/lib/usrp/cores/tx_dsp_core_3000.cpp
index feb749cd9..6fde70c5f 100644
--- a/host/lib/usrp/cores/tx_dsp_core_3000.cpp
+++ b/host/lib/usrp/cores/tx_dsp_core_3000.cpp
@@ -45,10 +45,13 @@ public:
):
_iface(iface), _dsp_base(dsp_base)
{
+ // previously uninitialized - assuming zero for all
+ _link_rate = _host_extra_scaling = _fxpt_scalar_correction = 0.0;
+
//init to something so update method has reasonable defaults
_scaling_adjustment = 1.0;
_dsp_extra_scaling = 1.0;
- this->set_tick_rate(1.0);
+ _tick_rate = 1.0;
}
void set_tick_rate(const double rate){