diff --git a/SoapySDDC/Settings.cpp b/SoapySDDC/Settings.cpp index 0635551e..b0ccbb41 100644 --- a/SoapySDDC/Settings.cpp +++ b/SoapySDDC/Settings.cpp @@ -195,9 +195,15 @@ void SoapySDDC::setFrequency(const int, const size_t, const std::string &, const DbgPrintf("SoapySDDC::setFrequency\n"); } -double SoapySDDC::getFrequency(const int, const size_t, const std::string &) const +double SoapySDDC::getFrequency(const int, const size_t) const { DbgPrintf("SoapySDDC::getFrequency\n"); + return 0.0; +} + +double SoapySDDC::getFrequency(const int, const size_t, const std::string &name) const +{ + DbgPrintf("SoapySDDC::getFrequency with name %s\n", name.c_str()); if (sampleRate == 32000000) { return 8000000.000000; diff --git a/SoapySDDC/SoapySDDC.hpp b/SoapySDDC/SoapySDDC.hpp index 0ca861e7..0f103f3d 100644 --- a/SoapySDDC/SoapySDDC.hpp +++ b/SoapySDDC/SoapySDDC.hpp @@ -91,6 +91,8 @@ class SoapySDDC: public SoapySDR::Device void setFrequency(const int direction, const size_t channel, const double frequency, const SoapySDR::Kwargs &args = SoapySDR::Kwargs()); void setFrequency(const int direction,const size_t channel,const std::string &name,const double frequency,const SoapySDR::Kwargs &args = SoapySDR::Kwargs()); + + double getFrequency(const int direction, const size_t channel) const; double getFrequency(const int direction, const size_t channel, const std::string &name) const;