diff --git a/src/arduinoFFT.cpp b/src/arduinoFFT.cpp index 7df82fe..fd0a390 100644 --- a/src/arduinoFFT.cpp +++ b/src/arduinoFFT.cpp @@ -86,7 +86,9 @@ void ArduinoFFT::compute(T *vReal, T *vImag, uint_fast16_t samples, swap(&vImag[i], &vImag[j]); #endif if (dir == FFTDirection::Reverse) + #ifndef COMPLEX_INPUT swap(&vImag[i], &vImag[j]); + #endif } uint_fast16_t k = (samples >> 1);