mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-02-03 09:44:26 -05:00
fix setCORR bug and more device names support
This commit is contained in:
parent
2b08c5d248
commit
1ec45e84d5
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user