mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-02 11:36:38 -04:00
Refactor naughty static variable hiding in WidebandSpectrum.
This commit is contained in:
parent
1f3c182b7f
commit
a577bc9664
2 changed files with 1 additions and 2 deletions
|
@ -34,8 +34,6 @@ void WidebandSpectrum::execute(const buffer_c8_t& buffer) {
|
|||
// 2048 complex8_t samples per buffer.
|
||||
// 102.4us per buffer. 20480 instruction cycles per buffer.
|
||||
|
||||
static int phase = 0;
|
||||
|
||||
if( phase == 0 ) {
|
||||
std::fill(spectrum.begin(), spectrum.end(), 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue