laforge
/
openbts-osmo
Archived
1
0
Fork 0

usrp: fix receive gain setting bug on non-uhd

When setting rx gain from the console, the returned set
value would never change due to a braces error around
logging macros.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
This commit is contained in:
Thomas Tsou 2011-06-01 14:50:45 -07:00
parent 6a8641438a
commit 7fc5b4e6cd
1 changed files with 3 additions and 2 deletions

View File

@ -263,10 +263,11 @@ double USRPDevice::setRxGain(double dB)
LOG(NOTICE) << "Setting TX gain to " << dB << " dB."; LOG(NOTICE) << "Setting TX gain to " << dB << " dB.";
if (!m_dbRx->set_gain(dB)) if (!m_dbRx->set_gain(dB)) {
LOG(ERROR) << "Error setting RX gain"; LOG(ERROR) << "Error setting RX gain";
else } else {
rxGain = dB; rxGain = dB;
}
return rxGain; return rxGain;
} }