Change in osmo-trx[master]: lms: Allow setting Tx/RxGain for chan!=0

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Tue Dec 4 12:37:32 UTC 2018


Pau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/12096


Change subject: lms: Allow setting Tx/RxGain for chan!=0
......................................................................

lms: Allow setting Tx/RxGain for chan!=0

Change-Id: I5fae92a7ed5e2d92be12b9dfd33fc56195030c0b
---
M Transceiver52M/device/lms/LMSDevice.cpp
1 file changed, 0 insertions(+), 10 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/96/12096/1

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::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::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())

-- 
To view, visit https://gerrit.osmocom.org/12096
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5fae92a7ed5e2d92be12b9dfd33fc56195030c0b
Gerrit-Change-Number: 12096
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181204/3b050190/attachment.htm>


More information about the gerrit-log mailing list