mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-23 16:25:12 +03:00
Spectrum analyser fix
This commit is contained in:
parent
e127e1c986
commit
9dca2d6b79
1 changed files with 1 additions and 5 deletions
|
@ -112,11 +112,7 @@ void menuRadioSpectrumAnalyser(event_t event)
|
||||||
uint8_t peak_y = 1;
|
uint8_t peak_y = 1;
|
||||||
uint8_t peak_x = 0;
|
uint8_t peak_x = 0;
|
||||||
for (uint8_t i=0; i<LCD_W; i++) {
|
for (uint8_t i=0; i<LCD_W; i++) {
|
||||||
uint8_t h = min<uint8_t >(reusableBuffer.spectrumAnalyser.bars[i] >> 1, 128);
|
uint8_t h = min<uint8_t >(reusableBuffer.spectrumAnalyser.bars[i] >> 1, LCD_H);
|
||||||
if (h > peak_y) {
|
|
||||||
peak_x = i;
|
|
||||||
peak_y = h;
|
|
||||||
}
|
|
||||||
lcdDrawSolidVerticalLine(i, LCD_H - h, h);
|
lcdDrawSolidVerticalLine(i, LCD_H - h, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue