1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-28 07:46:37 -04:00

SSB demod: apply clamping also when squelch opens

This commit is contained in:
f4exb 2024-05-19 13:44:45 +02:00
parent 8e9661f011
commit 31274b1227

View File

@ -171,7 +171,7 @@ void SSBDemodSink::processOneSample(Complex &ci)
// Prevent overload based on squared magnitude variation // Prevent overload based on squared magnitude variation
// Only if AGC is active // Only if AGC is active
if (m_agcActive && m_agcClamping && agcVal > 100.0) if (m_agcActive && m_agcClamping && (agcVal > 100.0 || agcVal == 0.0))
{ {
// qDebug("SSBDemodSink::processOneSample: %f", agcVal); // qDebug("SSBDemodSink::processOneSample: %f", agcVal);
m_agc.reset(m_agcTarget*m_agcTarget); m_agc.reset(m_agcTarget*m_agcTarget);