diff options
author | ttsou <ttsou@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | 2012-03-13 04:05:30 +0000 |
---|---|---|
committer | ttsou <ttsou@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | 2012-03-13 04:05:30 +0000 |
commit | 711fdf6f8133633ca88f800aa41a5d42c0a178b5 (patch) | |
tree | fcfa164a02217775b23889c52c4ae57c24a2ed7d /Transceiver52M/USRPDevice.cpp | |
parent | 724eb36105474daf41939d996056582cf943177b (diff) |
transceiver, usrp1: fix transmit gain setting bug
Transmit gain setting would deceptively set the receive
gain instead. Since transmit attenuation is a combination
of RF gain and digital scaling, this major copy/paste bug
may have gone unnoticed by many users.
Reported-by: Robin Coxe <coxe@close-haul.com>
Signed-off-by: Thomas Tsou <ttsou@vt.edu>
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3309 19bc5d8c-e614-43d4-8b26-e1612bc8e597
Diffstat (limited to 'Transceiver52M/USRPDevice.cpp')
-rw-r--r-- | Transceiver52M/USRPDevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/USRPDevice.cpp b/Transceiver52M/USRPDevice.cpp index e321b0a..d9eefc8 100644 --- a/Transceiver52M/USRPDevice.cpp +++ b/Transceiver52M/USRPDevice.cpp @@ -261,7 +261,7 @@ double USRPDevice::setTxGain(double dB) { LOG(NOTICE) << "Setting TX gain to " << dB << " dB."; - if (!m_dbRx->set_gain(dB)) + if (!m_dbTx->set_gain(dB)) LOG(ERR) << "Error setting TX gain"; writeLock.unlock(); |