aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2017-04-21 11:29:30 -0700
committerJosh Blum <josh@joshknows.com>2017-04-21 11:29:30 -0700
commitcf9549485af61658eab3e14e0a89db80742eb547 (patch)
tree31ab5212608aafae053dae5ae57151e9a2c2a7b4
parent117f64885904f743d1f04c5ddbbd39aab5a56e6d (diff)
soapy - correct constant for frequency correctionsoapy_support
This is a typo, some modules use the "CORR" string in the setFrequency(dir, chan, name, value) API to perform fine frequency adjustments. Updated modules will use setFrequencyCorrection(), this is support for backwards compatible implementations.
-rw-r--r--lib/soapy/soapy_sink_c.cc4
-rw-r--r--lib/soapy/soapy_source_c.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/soapy/soapy_sink_c.cc b/lib/soapy/soapy_sink_c.cc
index 07cf069..b12b8da 100644
--- a/lib/soapy/soapy_sink_c.cc
+++ b/lib/soapy/soapy_sink_c.cc
@@ -175,7 +175,7 @@ double soapy_sink_c::set_freq_corr( double ppm, size_t chan)
_device->setFrequencyCorrection(SOAPY_SDR_TX, chan, ppm);
#else
std::vector<std::string> components = _device->listFrequencies(SOAPY_SDR_TX, chan);
- if (std::find(components.begin(), components.end(), "COOR") != components.end())
+ if (std::find(components.begin(), components.end(), "CORR") != components.end())
{
_device->setFrequency(SOAPY_SDR_TX, chan, "CORR", ppm);
}
@@ -189,7 +189,7 @@ double soapy_sink_c::get_freq_corr( size_t chan)
return _device->getFrequencyCorrection(SOAPY_SDR_TX, chan);
#else
std::vector<std::string> components = _device->listFrequencies(SOAPY_SDR_TX, chan);
- if (std::find(components.begin(), components.end(), "COOR") != components.end())
+ if (std::find(components.begin(), components.end(), "CORR") != components.end())
{
return _device->getFrequency(SOAPY_SDR_TX, chan, "CORR");
}
diff --git a/lib/soapy/soapy_source_c.cc b/lib/soapy/soapy_source_c.cc
index c780966..a645361 100644
--- a/lib/soapy/soapy_source_c.cc
+++ b/lib/soapy/soapy_source_c.cc
@@ -176,7 +176,7 @@ double soapy_source_c::set_freq_corr( double ppm, size_t chan )
_device->setFrequencyCorrection(SOAPY_SDR_RX, chan, ppm);
#else
std::vector<std::string> components = _device->listFrequencies(SOAPY_SDR_RX, chan);
- if (std::find(components.begin(), components.end(), "COOR") != components.end())
+ if (std::find(components.begin(), components.end(), "CORR") != components.end())
{
_device->setFrequency(SOAPY_SDR_RX, chan, "CORR", ppm);
}
@@ -190,7 +190,7 @@ double soapy_source_c::get_freq_corr( size_t chan )
return _device->getFrequencyCorrection(SOAPY_SDR_RX, chan);
#else
std::vector<std::string> components = _device->listFrequencies(SOAPY_SDR_RX, chan);
- if (std::find(components.begin(), components.end(), "COOR") != components.end())
+ if (std::find(components.begin(), components.end(), "CORR") != components.end())
{
return _device->getFrequency(SOAPY_SDR_RX, chan, "CORR");
}