aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-12-04 13:37:18 +0100
committerHarald Welte <laforge@gnumonks.org>2018-12-05 19:43:46 +0000
commiteaa0144dcb67ed7e8698a7e0ffc2e18c38824a0d (patch)
tree9c97254515cf17f5a5b5a5ab041870d3edf07aa5 /Transceiver52M
parentf7331764ac22d3c25838be057835b79ef7ceaadd (diff)
lms: Allow setting Tx/RxGain for chan!=0
Diffstat (limited to 'Transceiver52M')
-rw-r--r--Transceiver52M/device/lms/LMSDevice.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp
index 712652a..21bcece 100644
--- a/Transceiver52M/device/lms/LMSDevice.cpp
+++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -322,11 +322,6 @@ double LMSDevice::minRxGain()
double LMSDevice::setTxGain(double dB, size_t chan)
{
- if (chan) {
- LOGC(DDEV, ALERT) << "Invalid channel " << chan;
- return 0.0;
- }
-
if (dB > maxTxGain())
dB = maxTxGain();
if (dB < minTxGain())
@@ -342,11 +337,6 @@ double LMSDevice::setTxGain(double dB, size_t chan)
double LMSDevice::setRxGain(double dB, size_t chan)
{
- if (chan) {
- LOGC(DDEV, ALERT) << "Invalid channel " << chan;
- return 0.0;
- }
-
if (dB > maxRxGain())
dB = maxRxGain();
if (dB < minRxGain())