fix setCORR bug and more device names support

This commit is contained in:
jocover 2015-10-11 15:46:16 +08:00
parent 2b08c5d248
commit 1ec45e84d5
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 {
return hardwareDC;
return hasCorr;
}
void SDRDeviceChannel::setCORR(const bool& hardware) {
hardwareDC = hardware;
void SDRDeviceChannel::setCORR(const bool& hasCorr) {
this->hasCorr = hasCorr;
}

View File

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