Skip to content

Commit

Permalink
Merge pull request #159 from jocover/more_device_names_support
Browse files Browse the repository at this point in the history
fix setCORR bug and more device names support
  • Loading branch information
cjcliffe committed Oct 11, 2015
2 parents 2b08c5d + 1ec45e8 commit 3570cef
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 3570cef

Please sign in to comment.