Skip to content

Commit

Permalink
fix setCORR bug and more device names support
Browse files Browse the repository at this point in the history
  • Loading branch information
jocover committed Oct 11, 2015
1 parent 2b08c5d commit 1ec45e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/sdr/SDRDeviceInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down
4 changes: 2 additions & 2 deletions src/sdr/SDREnumerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1ec45e8

Please sign in to comment.