Merge pull request #159 from jocover/more_device_names_support

fix setCORR bug and more device names support
This commit is contained in:
Charles J. Cliffe 2015-10-11 13:11:21 -04:00
commit 3570cef3f2
2 changed files with 5 additions and 5 deletions

View File

@ -99,11 +99,11 @@ void SDRDeviceChannel::setHardwareDC(const bool& hardware) {
const bool& SDRDeviceChannel::hasCORR() const { const bool& SDRDeviceChannel::hasCORR() const {
return hardwareDC; return hasCorr;
} }
void SDRDeviceChannel::setCORR(const bool& hardware) { void SDRDeviceChannel::setCORR(const bool& hasCorr) {
hardwareDC = hardware; this->hasCorr = hasCorr;
} }

View File

@ -143,7 +143,7 @@ std::vector<SDRDeviceInfo *> *SDREnumerator::enumerate_devices(std::string remot
std::cout << " " << it->first << " = " << it->second << std::endl; std::cout << " " << it->first << " = " << it->second << std::endl;
if (it->first == "driver") { if (it->first == "driver") {
dev->setDriver(it->second); dev->setDriver(it->second);
} else if (it->first == "label") { } else if (it->first == "label" || it->first == "device") {
dev->setName(it->second); dev->setName(it->second);
} }
} }