Bugfix: Some squelch types did not report the integrated siglev
Squelch types DDR, SIM and TONE reported the "raw" signal strength instead of the integrated one. This fix can change the behavior of the voter and the extended hangtime feature.
This commit is contained in:
parent
61ec8d68e0
commit
edaa9f42f9
|
|
@ -234,7 +234,7 @@ void SigLevDetDdr::processSamples(const vector<RtlTcp::Sample> &samples)
|
|||
update_counter += block_size;
|
||||
if (update_counter >= update_interval)
|
||||
{
|
||||
signalLevelUpdated(lastSiglev());
|
||||
signalLevelUpdated(siglevIntegrated());
|
||||
update_counter = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -238,7 +238,7 @@ int SigLevDetSim::writeSamples(const float *samples, int count)
|
|||
if (++update_counter >= update_interval)
|
||||
{
|
||||
update_counter = 0;
|
||||
signalLevelUpdated(lastSiglev());
|
||||
signalLevelUpdated(siglevIntegrated());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -386,7 +386,7 @@ int SigLevDetTone::processSamples(const float *samples, int count)
|
|||
update_counter += BLOCK_SIZE;
|
||||
if (update_counter >= update_interval)
|
||||
{
|
||||
signalLevelUpdated(lastSiglev());
|
||||
signalLevelUpdated(siglevIntegrated());
|
||||
update_counter = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue