mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-03 13:11:20 -05:00 
			
		
		
		
	SSB demod: apply clamping also when squelch opens
This commit is contained in:
		
							parent
							
								
									8e9661f011
								
							
						
					
					
						commit
						31274b1227
					
				@ -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);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user