Spectrum analyser working

This commit is contained in:
Bertrand Songis
2019-02-07 11:09:19 +01:00
parent 2fc96cf14d
commit 485472f7c9
7 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ void check_submenu_simple(event_t event, uint8_t maxrow);
void title(const char * s);
#define TITLE(str) title(str)
#define MENU_TAB(...) const uint8_t mstate_tab[] = __VA_ARGS__
#define MENU_TAB(...) const uint8_t mstate_tab[] = __VA_ARGS__
#if defined(PCBX7)
#define MENU_CHECK(tab, menu, lines_count) \
+5 -2
View File
@@ -24,9 +24,12 @@ void menuRadioSpectrum(event_t event)
{
MENU("SPECTRUM", menuTabGeneral, MENU_RADIO_SPECTRUM, HEADER_LINE, { HEADER_LINE_COLUMNS });
if (event == EVT_ENTRY) {
if (menuEvent) {
moduleSettings[INTERNAL_MODULE].mode = MODULE_MODE_NORMAL;
}
else if (event == EVT_ENTRY) {
memclear(reusableBuffer.spectrum.bars, sizeof(reusableBuffer.spectrum.bars));
moduleSettings[INTERNAL_MODULE].mode = MODULE_MODE_SPECTRUM;
moduleSettings[INTERNAL_MODULE].mode = MODULE_MODE_SPECTRUM_ANALYSER;
}
for (uint8_t i=0; i<LCD_W; i++) {
@@ -373,7 +373,6 @@ void check(event_t event, uint8_t curr, const MenuHandlerFunc *menuTab, uint8_t
menuCalibrationState = 0;
drawScreenIndex(curr, menuTabSize, attr);
}
DISPLAY_PROGRESS_BAR(menuTab ? lcdLastRightPos-2*FW-((curr+1)/10*FWNUM)-2 : 20*FW+1);