<p>Pau Espin Pedrol has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12096">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">lms: Allow setting Tx/RxGain for chan!=0<br><br>Change-Id: I5fae92a7ed5e2d92be12b9dfd33fc56195030c0b<br>---<br>M Transceiver52M/device/lms/LMSDevice.cpp<br>1 file changed, 0 insertions(+), 10 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/96/12096/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp</span><br><span>index 712652a..21bcece 100644</span><br><span>--- a/Transceiver52M/device/lms/LMSDevice.cpp</span><br><span>+++ b/Transceiver52M/device/lms/LMSDevice.cpp</span><br><span>@@ -322,11 +322,6 @@</span><br><span> </span><br><span> double LMSDevice::setTxGain(double dB, size_t chan)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-       if (chan) {</span><br><span style="color: hsl(0, 100%, 40%);">-             LOGC(DDEV, ALERT) << "Invalid channel " << chan;</span><br><span style="color: hsl(0, 100%, 40%);">-          return 0.0;</span><br><span style="color: hsl(0, 100%, 40%);">-     }</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span>    if (dB > maxTxGain())</span><br><span>             dB = maxTxGain();</span><br><span>    if (dB < minTxGain())</span><br><span>@@ -342,11 +337,6 @@</span><br><span> </span><br><span> double LMSDevice::setRxGain(double dB, size_t chan)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">- if (chan) {</span><br><span style="color: hsl(0, 100%, 40%);">-             LOGC(DDEV, ALERT) << "Invalid channel " << chan;</span><br><span style="color: hsl(0, 100%, 40%);">-          return 0.0;</span><br><span style="color: hsl(0, 100%, 40%);">-     }</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span>    if (dB > maxRxGain())</span><br><span>             dB = maxRxGain();</span><br><span>    if (dB < minRxGain())</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12096">change 12096</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/12096"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-trx </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I5fae92a7ed5e2d92be12b9dfd33fc56195030c0b </div>
<div style="display:none"> Gerrit-Change-Number: 12096 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>