mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-13 01:59:29 +00:00
Fixed the issues #3280
This commit is contained in:
@@ -51,6 +51,12 @@ bool FilteredSpectrumCollector::feed(
|
||||
sampling_rate_ = channel.sampling_rate / capture_decimation_;
|
||||
capture_ready_ = true;
|
||||
EventDispatcher::events_flag(EVT_MASK_SPECTRUM);
|
||||
if (is_streaming()) {
|
||||
capture_ready_ = true;
|
||||
EventDispatcher::events_flag(EVT_MASK_SPECTRUM);
|
||||
} else {
|
||||
capture_ready_ = false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -51,6 +51,7 @@ class SpectrumCollector {
|
||||
const int32_t filter_transition);
|
||||
|
||||
protected:
|
||||
bool is_streaming() const { return streaming; }
|
||||
void set_filter(
|
||||
const int32_t filter_low_frequency,
|
||||
const int32_t filter_high_frequency,
|
||||
|
||||
Reference in New Issue
Block a user