mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-25 02:18:30 +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) {
|
void IQFrontEnd::setFFTSize(int size) {
|
||||||
_fftSize = size;
|
_fftSize = size;
|
||||||
updateFFTPath();
|
updateFFTPath(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void IQFrontEnd::setFFTRate(double rate) {
|
void IQFrontEnd::setFFTRate(double rate) {
|
||||||
@ -260,7 +260,7 @@ void IQFrontEnd::handler(dsp::complex_t* data, int count, void* ctx) {
|
|||||||
_this->_releaseFFTBuffer(_this->_fftCtx);
|
_this->_releaseFFTBuffer(_this->_fftCtx);
|
||||||
}
|
}
|
||||||
|
|
||||||
void IQFrontEnd::updateFFTPath() {
|
void IQFrontEnd::updateFFTPath(bool updateWaterfall) {
|
||||||
// Temp stop branch
|
// Temp stop branch
|
||||||
reshape.tempStop();
|
reshape.tempStop();
|
||||||
fftSink.tempStop();
|
fftSink.tempStop();
|
||||||
@ -295,7 +295,7 @@ void IQFrontEnd::updateFFTPath() {
|
|||||||
dsp::buffer::clear(fftInBuf, _fftSize - _nzFFTSize, _nzFFTSize);
|
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)
|
// 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
|
// Restart branch
|
||||||
reshape.tempStart();
|
reshape.tempStart();
|
||||||
|
@ -48,7 +48,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
static void handler(dsp::complex_t* data, int count, void* ctx);
|
static void handler(dsp::complex_t* data, int count, void* ctx);
|
||||||
void updateFFTPath();
|
void updateFFTPath(bool updateWaterfall = false);
|
||||||
|
|
||||||
static inline double genDCBlockRate(double sampleRate) {
|
static inline double genDCBlockRate(double sampleRate) {
|
||||||
return 50.0 / sampleRate;
|
return 50.0 / sampleRate;
|
||||||
|
Loading…
Reference in New Issue
Block a user