From b1e838a5f73af2425d34b8b5a8af1bf703b8df30 Mon Sep 17 00:00:00 2001 From: F5OEO Date: Mon, 10 Dec 2018 13:52:43 +0000 Subject: Move CFR preprocess only if CFR enable --- src/OfdmGenerator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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(myFftOut); + + if (myCfr) { + complexf *symbol = reinterpret_cast(myFftOut); myPaprBeforeCFR.process_block(symbol, mySpacing); - if (myCfr) { if (myMERCalcIndex == i) { before_cfr.resize(mySpacing); memcpy(reinterpret_cast(before_cfr.data()), -- cgit v1.2.3