diff --git a/analyze_fft4096_iq_F32.h b/analyze_fft4096_iq_F32.h index b0cc2fc..3d6ba67 100644 --- a/analyze_fft4096_iq_F32.h +++ b/analyze_fft4096_iq_F32.h @@ -92,6 +92,7 @@ * no matter how it is scaled, but this factor needs to be considered * when building the INO. */ + // Corrected sumsq[] array size. RSL 31 Dec 2022 #ifndef analyze_fft4096iq_h_ #define analyze_fft4096iq_h_ @@ -237,7 +238,8 @@ private: float window[4096]; float *pWin = window; float fft_buffer[8192]; - float sumsq[8192]; // Avoid re-use of output[] +// Was float sumsq[8192]; // Avoid re-use of output[] + float sumsq[4096]; // 31 Dec 2022 uint8_t state = 0; bool outputflag = false; audio_block_f32_t *inputQueueArray[2]; diff --git a/examples/TestFFT4096iq/TestFFT4096iq.ino b/examples/TestFFT4096iq/TestFFT4096iq.ino index 768fe98..c8a5523 100644 --- a/examples/TestFFT4096iq/TestFFT4096iq.ino +++ b/examples/TestFFT4096iq/TestFFT4096iq.ino @@ -31,7 +31,7 @@ void setup(void) { // The 4096 complex FFT needs 32 F32 memory for real and 32 for imag. // Set memory to more than 64, depending on other useage. AudioMemory_F32(100); - Serial.println("FFT4096IQ Test"); + Serial.println("FFT4096IQ Test 2"); sine_cos1.amplitude(1.0f); // Initialize Waveform Generator