diff options
author | Michael West <michael.west@ettus.com> | 2013-10-28 12:41:08 -0700 |
---|---|---|
committer | Michael West <michael.west@ettus.com> | 2013-10-28 12:41:08 -0700 |
commit | 5c8aef184bb8d5654565d4b961696e6681178bc8 (patch) | |
tree | 9c39d90438d3efbc8c448604f5eeae64a2f9144f | |
parent | b91f28ad65a2581f0223439eaded51da19694358 (diff) | |
download | uhd-5c8aef184bb8d5654565d4b961696e6681178bc8.tar.gz uhd-5c8aef184bb8d5654565d4b961696e6681178bc8.tar.bz2 uhd-5c8aef184bb8d5654565d4b961696e6681178bc8.zip |
CID 1104316: Fixed uninitialized scalar.
-rw-r--r-- | host/lib/usrp/cores/rx_dsp_core_3000.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/host/lib/usrp/cores/rx_dsp_core_3000.cpp b/host/lib/usrp/cores/rx_dsp_core_3000.cpp index 7b3324f74..525916032 100644 --- a/host/lib/usrp/cores/rx_dsp_core_3000.cpp +++ b/host/lib/usrp/cores/rx_dsp_core_3000.cpp @@ -50,10 +50,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; } ~rx_dsp_core_3000_impl(void) |