From 3fadcad33ed9fd16bd8946bc60a149dae339fd32 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 4 Dec 2018 13:54:15 +0100 Subject: lms: Allow setting Tx/RxFreq for lchan!=0 Related: OS#3346 Change-Id: I9dd0bb41d1863111d28947fc0d7c7e7ecfaf5fa8 --- Transceiver52M/device/lms/LMSDevice.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'Transceiver52M/device/lms/LMSDevice.cpp') diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp index 21bcece..8f3d8e1 100644 --- a/Transceiver52M/device/lms/LMSDevice.cpp +++ b/Transceiver52M/device/lms/LMSDevice.cpp @@ -601,12 +601,6 @@ bool LMSDevice::updateAlignment(TIMESTAMP timestamp) bool LMSDevice::setTxFreq(double wFreq, size_t chan) { - - if (chan) { - LOGC(DDEV, ALERT) << "Invalid channel " << chan; - return false; - } - if (LMS_SetLOFrequency(m_lms_dev, LMS_CH_TX, chan, wFreq) < 0) { LOGC(DDEV, ALERT) << "set Tx: " << wFreq << " failed!"; return false; @@ -617,11 +611,6 @@ bool LMSDevice::setTxFreq(double wFreq, size_t chan) bool LMSDevice::setRxFreq(double wFreq, size_t chan) { - if (chan) { - LOGC(DDEV, ALERT) << "Invalid channel " << chan; - return false; - } - if (LMS_SetLOFrequency(m_lms_dev, LMS_CH_RX, chan, wFreq) < 0) { LOGC(DDEV, ALERT) << "set Rx: " << wFreq << " failed!"; return false; -- cgit v1.2.3