aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-01-07 16:10:34 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-01-07 16:10:34 +0100
commitbf583706752f02d76b1ec5c3d53c1c96f52a4baf (patch)
tree5acbb3b0edd15d05365e0d568a33617c35e9d78a
parent7c84925ea4e4caeb0a37baa8b6363214062929f0 (diff)
lms: Move initialization of field started to constructor
-rw-r--r--Transceiver52M/device/lms/LMSDevice.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp
index 19fe6e8..4a687e1 100644
--- a/Transceiver52M/device/lms/LMSDevice.cpp
+++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -49,7 +49,7 @@ LMSDevice::LMSDevice(size_t tx_sps, size_t rx_sps, InterfaceType iface, size_t c
const std::vector<std::string>& tx_paths,
const std::vector<std::string>& rx_paths):
RadioDevice(tx_sps, rx_sps, iface, chans, lo_offset, tx_paths, rx_paths),
- m_lms_dev(NULL)
+ m_lms_dev(NULL), started(false)
{
LOGC(DDEV, INFO) << "creating LMS device...";
@@ -248,8 +248,6 @@ int LMSDevice::open(const std::string &args, int ref, bool swap_channels)
for (size_t i = 0; i < rx_buffers.size(); i++)
rx_buffers[i] = new smpl_buf(SAMPLE_BUF_SZ / sizeof(uint32_t));
- started = false;
-
return NORMAL;
out_close: