fix driver key case

This commit is contained in:
Charles J. Cliffe 2016-07-22 19:43:22 -04:00
parent 096a1aa5fd
commit 884f740030

View File

@ -91,7 +91,7 @@ void SDRThread::init() {
device->setSampleRate(SOAPY_SDR_RX,0,sampleRate.load());
// TODO: explore bandwidth setting option to see if this is necessary for others
if (device->getDriverKey() == "bladerf") {
if (device->getDriverKey() == "bladeRF") {
device->setBandwidth(SOAPY_SDR_RX, 0, sampleRate.load());
}
@ -287,7 +287,7 @@ void SDRThread::updateSettings() {
if (rate_changed.load()) {
device->setSampleRate(SOAPY_SDR_RX,0,sampleRate.load());
// TODO: explore bandwidth setting option to see if this is necessary for others
if (device->getDriverKey() == "bladerf") {
if (device->getDriverKey() == "bladeRF") {
device->setBandwidth(SOAPY_SDR_RX, 0, sampleRate.load());
}
sampleRate.store(device->getSampleRate(SOAPY_SDR_RX,0));