aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-11-26 19:26:52 +0100
committerHarald Welte <laforge@gnumonks.org>2018-11-29 13:26:37 +0100
commit55928f23cbb722f0e957e6a9f12dee282a1b4a35 (patch)
tree7ec3c258c8d280813ed32d8f51cd7e120ef3760d
parent0277b58f6de295046ce53dc1722a3ed0b29af6ce (diff)
lms: Set Rx gain to midpoint, as comment suggests.
So far, the Rx gain was set to 34 dB, wile the comment stated it would be set to half-point, which is 73/2=36dB. Let's adjust the code to match the comment. Change-Id: Idc646def53b83faf4e6c011fb595fa436e223b32
-rw-r--r--Transceiver52M/device/lms/LMSDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp
index 0a6c4a2..1cda4f9 100644
--- a/Transceiver52M/device/lms/LMSDevice.cpp
+++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -223,7 +223,7 @@ bool LMSDevice::start()
// Set gains to midpoint
setTxGain((minTxGain() + maxTxGain()) / 2, i);
- setRxGain(34.0, i);
+ setRxGain((minRxGain() + maxRxGain()) / 2, i);
m_lms_stream_rx[i] = {};
m_lms_stream_rx[i].isTx = false;