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>
master
Thomas Tsou 12 years ago
parent 6a8641438a
commit 7fc5b4e6cd
  1. 5
      public-trunk/Transceiver/USRPDevice.cpp

@ -263,10 +263,11 @@ double USRPDevice::setRxGain(double 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";
else
} else {
rxGain = dB;
}
return rxGain;
}