mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-24 01:48:28 +01:00
Fixed waterfall being cleared for no reason
This commit is contained in:
parent
96f5b37f76
commit
3ab8badb6a
@ -178,7 +178,7 @@ void IQFrontEnd::removeVFO(std::string name) {
|
||||
|
||||
void IQFrontEnd::setFFTSize(int size) {
|
||||
_fftSize = size;
|
||||
updateFFTPath();
|
||||
updateFFTPath(true);
|
||||
}
|
||||
|
||||
void IQFrontEnd::setFFTRate(double rate) {
|
||||
@ -260,7 +260,7 @@ void IQFrontEnd::handler(dsp::complex_t* data, int count, void* ctx) {
|
||||
_this->_releaseFFTBuffer(_this->_fftCtx);
|
||||
}
|
||||
|
||||
void IQFrontEnd::updateFFTPath() {
|
||||
void IQFrontEnd::updateFFTPath(bool updateWaterfall) {
|
||||
// Temp stop branch
|
||||
reshape.tempStop();
|
||||
fftSink.tempStop();
|
||||
@ -295,7 +295,7 @@ void IQFrontEnd::updateFFTPath() {
|
||||
dsp::buffer::clear(fftInBuf, _fftSize - _nzFFTSize, _nzFFTSize);
|
||||
|
||||
// Update waterfall (TODO: This is annoying, it makes this module non testable and will constantly clear the waterfall for any reason)
|
||||
gui::waterfall.setRawFFTSize(_fftSize);
|
||||
if (updateWaterfall) { gui::waterfall.setRawFFTSize(_fftSize); }
|
||||
|
||||
// Restart branch
|
||||
reshape.tempStart();
|
||||
|
@ -48,7 +48,7 @@ public:
|
||||
|
||||
protected:
|
||||
static void handler(dsp::complex_t* data, int count, void* ctx);
|
||||
void updateFFTPath();
|
||||
void updateFFTPath(bool updateWaterfall = false);
|
||||
|
||||
static inline double genDCBlockRate(double sampleRate) {
|
||||
return 50.0 / sampleRate;
|
||||
|
Loading…
Reference in New Issue
Block a user