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:
parent
6a8641438a
commit
7fc5b4e6cd
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue