mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-09 09:25:07 -04:00
Meshtastic: apply Copilot review in original PR
This commit is contained in:
@@ -330,7 +330,7 @@ void MeshtasticModSource::calculateLevel(Real& sample)
|
||||
{
|
||||
if (m_levelCalcCount < m_levelNbSamples)
|
||||
{
|
||||
m_peakLevel = std::max(std::fabs(m_peakLevel), sample);
|
||||
m_peakLevel = std::max(m_peakLevel, std::fabs(sample));
|
||||
m_levelSum += sample * sample;
|
||||
m_levelCalcCount++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user