mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-06 14:32:32 +00:00
Support squelch in pocsag (#1415)
* Support squelch in pocsag * Revert smooth threshold
This commit is contained in:
@@ -106,10 +106,10 @@ class SmoothVals {
|
||||
|
||||
// Use a rolling smoothed value while processing the buffer
|
||||
for (int buffPos = 0; buffPos < numVals; ++buffPos) {
|
||||
m_pos = (m_pos + 1); // Increment the position in the stored values
|
||||
m_pos++;
|
||||
if (m_pos >= m_size) {
|
||||
m_pos = 0;
|
||||
} // loop if reached the end of the stored values
|
||||
}
|
||||
|
||||
m_sumVal -= (CalcType)m_lastVals[m_pos]; // Subtract the oldest value
|
||||
m_lastVals[m_pos] = valBuff[buffPos]; // Store the new value
|
||||
|
||||
Reference in New Issue
Block a user