diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-09-13 16:51:48 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-09-13 17:33:14 +0200 |
commit | 705a34832605f100686ba1386461cdd482290952 (patch) | |
tree | c27585fd431369d10d4238de4582431cf7b4fc72 /Transceiver52M/device/lms/LMSDevice.h | |
parent | 331c88ae82d730991a8d687df9542c6a1e2f8b29 (diff) |
LMSDevice: Return previous txGain/rxGain if setting value failed
Change-Id: I11e853e11bec99fc88e81642f9b2cd87d5815398
Diffstat (limited to 'Transceiver52M/device/lms/LMSDevice.h')
-rw-r--r-- | Transceiver52M/device/lms/LMSDevice.h | 4 |
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 **/ |