mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 10:05:46 -05:00
Fix gcc warnings
This commit is contained in:
parent
b754e0f4a4
commit
c53b4a0f56
@ -2188,7 +2188,6 @@ void GLSpectrum::measureSNR()
|
||||
// Highlight the signal
|
||||
float hzPerBin = m_sampleRate / (float) m_fftSize;
|
||||
float sigFreq = binToFrequency(sig);
|
||||
float sigBW = sigBins * hzPerBin;
|
||||
if (m_measurementHighlight) {
|
||||
drawPeakMarkers(binToFrequency(sigLeft+1), binToFrequency(sigRight-1), m_measurementLightMarkerColor);
|
||||
}
|
||||
@ -2409,7 +2408,7 @@ float GLSpectrum::calcChannelPower(int64_t centerFrequency, int channelBandwidth
|
||||
{
|
||||
float shift = m_useCalibration ? m_calibrationShiftdB : 0.0f;
|
||||
for (int i = start; i <= end; i++) {
|
||||
power += CalcDb::powerFromdB(m_currentSpectrum[i]) + m_calibrationShiftdB;
|
||||
power += CalcDb::powerFromdB(m_currentSpectrum[i]) + shift;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user