diff options
-rw-r--r-- | AlignSample.cpp | 4 | ||||
-rw-r--r-- | CMakeLists.txt | 1 |
2 files changed, 4 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; diff --git a/CMakeLists.txt b/CMakeLists.txt index 2304b01..5ec0387 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,6 +72,7 @@ list(APPEND odrdpd_sources list(APPEND common_link_list ${UHD_LIBRARIES} ${SDL_LIBRARIES} + -lboost_system ${GLU_LIBRARIES} ${ZMQ_LIBRARIES} ${FFTW3F_LIBRARIES} |