aboutsummaryrefslogtreecommitdiffstats
path: root/AlignSample.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AlignSample.cpp')
-rw-r--r--AlignSample.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/AlignSample.cpp b/AlignSample.cpp
index dd29f64..7de4459 100644
--- a/AlignSample.cpp
+++ b/AlignSample.cpp
@@ -214,7 +214,7 @@ void AlignSample::delay_rx_samples(size_t delay)
static std::vector<double> gen_omega(size_t length)
{
- if (not length % 2 == 0) {
+ if ((length % 2) == 1) {
throw std::runtime_error("Needs an even length array.");
}
size_t halflength = length/2;
@@ -314,6 +314,8 @@ std::pair<vec_cf, vec_cf> AlignSample::get_samples(
std::copy(m_txsamples.begin(),
m_txsamples.begin() + len,
std::back_inserter(rval.second));
+
+ rval.first = align_subsample(rval.first, rval.second);
}
return rval;