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:
Tobias Blomberg 2020-07-27 00:51:44 +02:00
parent 61ec8d68e0
commit edaa9f42f9
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -238,7 +238,7 @@ int SigLevDetSim::writeSamples(const float *samples, int count)
if (++update_counter >= update_interval)
{
update_counter = 0;
signalLevelUpdated(lastSiglev());
signalLevelUpdated(siglevIntegrated());
}
}
}

View File

@ -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;
}
}