diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-12-04 13:54:15 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-12-05 19:43:46 +0000 |
commit | 3fadcad33ed9fd16bd8946bc60a149dae339fd32 (patch) | |
tree | 311acee4bbf1cc355cce8c372748e5eac9f7ea0b | |
parent | eaa0144dcb67ed7e8698a7e0ffc2e18c38824a0d (diff) |
lms: Allow setting Tx/RxFreq for lchan!=0
Related: OS#3346
Change-Id: I9dd0bb41d1863111d28947fc0d7c7e7ecfaf5fa8
-rw-r--r-- | Transceiver52M/device/lms/LMSDevice.cpp | 11 |
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; |