mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-09-28 16:16:58 -04:00
Merge pull request #159 from jocover/more_device_names_support
fix setCORR bug and more device names support
This commit is contained in:
commit
3570cef3f2
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -143,9 +143,9 @@ 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dev->setDeviceArgs(deviceArgs);
|
dev->setDeviceArgs(deviceArgs);
|
||||||
|
Loading…
Reference in New Issue
Block a user