Clear spectrum FIFO when streaming is stopped.

This commit is contained in:
Jared Boone 2016-01-10 11:00:09 -08:00
parent 62e5ec1dbb
commit 136ba895ef
2 changed files with 5 additions and 0 deletions

View File

@ -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(

View File

@ -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;
} }