From 2b69ec848b20a2cf4b731a6a6fe57b6b9a6a5067 Mon Sep 17 00:00:00 2001 From: Michael West Date: Mon, 28 Oct 2013 12:45:37 -0700 Subject: CID 1104309: Fixed uninitialized scalar. --- host/lib/usrp/cores/tx_dsp_core_3000.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'host') 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){ -- cgit v1.2.3