Compilation fix

This commit is contained in:
Bertrand Songis
2019-04-15 11:05:34 +02:00
parent fdfac12e78
commit b21dccc30a
+1 -1
View File
@@ -188,7 +188,7 @@ void processSpectrumAnalyserFrame(uint8_t module, uint8_t * frame)
// TRACE("Fq=%u, Pw=%d, X=%d, Y=%d", *frequency, int32_t(*power), D * 128 / 40000000, int32_t(127 + *power));
int32_t position = *frequency - reusableBuffer.spectrumAnalyser.freq - (reusableBuffer.spectrumAnalyser.span / 2);
uint8_t x = (position * LCD_W) / reusableBuffer.spectrumAnalyser.span;
unsigned x = (position * LCD_W) / reusableBuffer.spectrumAnalyser.span;
if (x < LCD_W) {
reusableBuffer.spectrumAnalyser.bars[x] = 127 + *power;
}