mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
Spectrum averaging (2): moving average
This commit is contained in:
@@ -68,7 +68,7 @@ public:
|
||||
|
||||
T storeAndGetAvg(T v, unsigned int index)
|
||||
{
|
||||
if (m_depth == 1)
|
||||
if (m_depth <= 1)
|
||||
{
|
||||
return v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user