1
0
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:
f4exb
2026-03-15 23:14:08 +01:00
parent 738bdfa744
commit ab040bd2c7
11 changed files with 38 additions and 33 deletions
@@ -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++;
}