mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-05-06 03:36:47 +00:00
Clear spectrum FIFO when streaming is stopped.
This commit is contained in:
parent
62e5ec1dbb
commit
136ba895ef
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user