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