From c3b5cd28c8ff5157d718fd2d6db0a739606a17b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Sandstr=C3=B6m?= Date: Wed, 8 Apr 2020 10:27:15 +0200 Subject: [PATCH] Remove unneeded update iff fftxaxis asyn param. --- ecmcPlugin_FFT-loc/ecmcPlugin_FFTApp/src/ecmcFFT.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecmcPlugin_FFT-loc/ecmcPlugin_FFTApp/src/ecmcFFT.cpp b/ecmcPlugin_FFT-loc/ecmcPlugin_FFTApp/src/ecmcFFT.cpp index 9957ef2..3f36c1c 100644 --- a/ecmcPlugin_FFT-loc/ecmcPlugin_FFTApp/src/ecmcFFT.cpp +++ b/ecmcPlugin_FFT-loc/ecmcPlugin_FFTApp/src/ecmcFFT.cpp @@ -274,8 +274,8 @@ void ecmcFFT::connectToDataSource() { double deltaFreq = ecmcSampleRateHz_* ((double)dataItemInfo_->dataSize / (double)dataItemInfo_->dataElementSize) / ((double)(cfgNfft_)); for(unsigned int i = 0; i < cfgNfft_; ++i) { - freq = freq + deltaFreq; fftBufferXAxis_[i] = freq; + freq = freq + deltaFreq; } updateStatus(IDLE); @@ -328,7 +328,7 @@ void ecmcFFT::dataUpdatedCallback(uint8_t* data, // Update asyn with both input and result asynRawData_->refreshParamRT(1); // Forced update (do not consider record rate) asynFFTAmp_->refreshParamRT(1); // Forced update (do not consider record rate) - asynFFTXAxis_->refreshParamRT(1); // Forced update (do not consider record rate) + //asynFFTXAxis_->refreshParamRT(1); // Forced update (do not consider record rate) if(cfgDbgMode_){ printComplexArray(fftBufferResult_,