diff options
Diffstat (limited to 'Transceiver52M/device/lms')
-rw-r--r-- | Transceiver52M/device/lms/LMSDevice.cpp | 20 | ||||
-rw-r--r-- | Transceiver52M/device/lms/LMSDevice.h | 1 |
2 files changed, 10 insertions, 11 deletions
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp index c4d5f96..815a4c5 100644 --- a/Transceiver52M/device/lms/LMSDevice.cpp +++ b/Transceiver52M/device/lms/LMSDevice.cpp @@ -100,19 +100,19 @@ int LMSDevice::open(const std::string &args, int ref, bool swap_channels) LMS_RegisterLogHandler(&lms_log_callback); - if ((n = LMS_GetDeviceList(NULL)) < 0) - LOG(ERROR) << "LMS_GetDeviceList(NULL) failed"; - LOG(DEBUG) << "Devices found: " << n; - if (n < 1) - return -1; + if ((n = LMS_GetDeviceList(NULL)) < 0) + LOG(ERROR) << "LMS_GetDeviceList(NULL) failed"; + LOG(DEBUG) << "Devices found: " << n; + if (n < 1) + return -1; - info_list = new lms_info_str_t[n]; + info_list = new lms_info_str_t[n]; - if (LMS_GetDeviceList(info_list) < 0) //Populate device list - LOG(ERROR) << "LMS_GetDeviceList(info_list) failed"; + if (LMS_GetDeviceList(info_list) < 0) + LOG(ERROR) << "LMS_GetDeviceList(info_list) failed"; - for (i = 0; i < n; i++) //print device list - LOG(DEBUG) << "Device [" << i << "]: " << info_list[i]; + for (i = 0; i < n; i++) + LOG(DEBUG) << "Device [" << i << "]: " << info_list[i]; rc = LMS_Open(&m_lms_dev, info_list[0], NULL); if (rc != 0) { diff --git a/Transceiver52M/device/lms/LMSDevice.h b/Transceiver52M/device/lms/LMSDevice.h index 7d8d44b..349efbb 100644 --- a/Transceiver52M/device/lms/LMSDevice.h +++ b/Transceiver52M/device/lms/LMSDevice.h @@ -46,7 +46,6 @@ private: std::vector<uint32_t> m_last_tx_underruns; std::vector<uint32_t> m_last_tx_overruns; - size_t chans; double actualSampleRate; ///< the actual USRP sampling rate unsigned long long samplesRead; ///< number of samples read from LMS |