mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-11-07 20:31:23 +00:00
Clear spectrum FIFO when streaming is stopped.
This commit is contained in:
@@ -37,6 +37,7 @@ void SpectrumCollector::start() {
|
|||||||
|
|
||||||
void SpectrumCollector::stop() {
|
void SpectrumCollector::stop() {
|
||||||
streaming = false;
|
streaming = false;
|
||||||
|
fifo.reset_in();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpectrumCollector::set_decimation_factor(
|
void SpectrumCollector::set_decimation_factor(
|
||||||
|
|||||||
@@ -42,6 +42,10 @@ public:
|
|||||||
_in = _out = 0;
|
_in = _out = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void reset_in() {
|
||||||
|
_in = _out;
|
||||||
|
}
|
||||||
|
|
||||||
void reset_out() {
|
void reset_out() {
|
||||||
_out = _in;
|
_out = _in;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user