From d58c5477c159828f01708317e19e94abe6e8c71b Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 2 Feb 2022 12:41:31 +0100 Subject: Limit FFTW planner to 2s to avoid stalling input Stalling the input breaks the ZMQ input functionality on raspberry pi. EDI is able to restart the modulator, which uses cached plans --- src/OfdmGenerator.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/OfdmGenerator.cpp') diff --git a/src/OfdmGenerator.cpp b/src/OfdmGenerator.cpp index 00b53ad..2e68df0 100644 --- a/src/OfdmGenerator.cpp +++ b/src/OfdmGenerator.cpp @@ -104,6 +104,7 @@ OfdmGenerator::OfdmGenerator(size_t nbSymbols, const int N = mySpacing; // The size of the FFT myFftIn = (FFT_TYPE*)fftwf_malloc(sizeof(FFT_TYPE) * N); myFftOut = (FFT_TYPE*)fftwf_malloc(sizeof(FFT_TYPE) * N); + fftwf_set_timelimit(2); myFftPlan = fftwf_plan_dft_1d(N, myFftIn, myFftOut, FFTW_BACKWARD, FFTW_MEASURE); -- cgit v1.2.3