From bf583706752f02d76b1ec5c3d53c1c96f52a4baf Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 7 Jan 2020 16:10:34 +0100 Subject: lms: Move initialization of field started to constructor Change-Id: I135a2ff4a419775169452be1128c7b30f7d638ad --- Transceiver52M/device/lms/LMSDevice.cpp | 4 +--- 1 file changed, 1 insertion(+), 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& tx_paths, const std::vector& 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: -- cgit v1.2.3-59-g8ed1b