aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/device/lms/LMSDevice.h
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-09-13 16:51:48 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-09-13 17:33:14 +0200
commit705a34832605f100686ba1386461cdd482290952 (patch)
treec27585fd431369d10d4238de4582431cf7b4fc72 /Transceiver52M/device/lms/LMSDevice.h
parent331c88ae82d730991a8d687df9542c6a1e2f8b29 (diff)
LMSDevice: Return previous txGain/rxGain if setting value failed
Diffstat (limited to 'Transceiver52M/device/lms/LMSDevice.h')
-rw-r--r--Transceiver52M/device/lms/LMSDevice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Transceiver52M/device/lms/LMSDevice.h b/Transceiver52M/device/lms/LMSDevice.h
index ab45b08..71a706c 100644
--- a/Transceiver52M/device/lms/LMSDevice.h
+++ b/Transceiver52M/device/lms/LMSDevice.h
@@ -58,7 +58,7 @@ private:
TIMESTAMP ts_initial, ts_offset;
- double rxGain;
+ std::vector<double> tx_gains, rx_gains;
double maxTxGainClamp;
bool do_calib(size_t chan);
@@ -150,7 +150,7 @@ public:
/** get the current receive gain */
double getRxGain(size_t chan = 0) {
- return rxGain;
+ return rx_gains[chan];
}
/** return maximum Rx Gain **/