aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-12-04 13:54:15 +0100
committerHarald Welte <laforge@gnumonks.org>2018-12-05 19:43:46 +0000
commit3fadcad33ed9fd16bd8946bc60a149dae339fd32 (patch)
tree311acee4bbf1cc355cce8c372748e5eac9f7ea0b
parenteaa0144dcb67ed7e8698a7e0ffc2e18c38824a0d (diff)
lms: Allow setting Tx/RxFreq for lchan!=0
-rw-r--r--Transceiver52M/device/lms/LMSDevice.cpp11
1 files changed, 0 insertions, 11 deletions
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;