summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorF5OEO <evaristec@gmail.com>2018-12-10 13:52:43 +0000
committerF5OEO <evaristec@gmail.com>2018-12-10 13:52:43 +0000
commitb1e838a5f73af2425d34b8b5a8af1bf703b8df30 (patch)
tree1849e0121c0c395340b8875bfbc21527febfe869
parent5d825e7586814d47f29d3b4324effb36c6acd9ed (diff)
downloaddabmod-b1e838a5f73af2425d34b8b5a8af1bf703b8df30.tar.gz
dabmod-b1e838a5f73af2425d34b8b5a8af1bf703b8df30.tar.bz2
dabmod-b1e838a5f73af2425d34b8b5a8af1bf703b8df30.zip
Move CFR preprocess only if CFR enable
-rw-r--r--src/OfdmGenerator.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/OfdmGenerator.cpp b/src/OfdmGenerator.cpp
index 1331e63..2642bff 100644
--- a/src/OfdmGenerator.cpp
+++ b/src/OfdmGenerator.cpp
@@ -226,10 +226,11 @@ int OfdmGenerator::process(Buffer* const dataIn, Buffer* dataOut)
fftwf_execute(myFftPlan); // IFFT from myFftIn to myFftOut
- complexf *symbol = reinterpret_cast<complexf*>(myFftOut);
+
+ if (myCfr) {
+ complexf *symbol = reinterpret_cast<complexf*>(myFftOut);
myPaprBeforeCFR.process_block(symbol, mySpacing);
- if (myCfr) {
if (myMERCalcIndex == i) {
before_cfr.resize(mySpacing);
memcpy(reinterpret_cast<fftwf_complex*>(before_cfr.data()),