Spectrum analyser working
This commit is contained in:
@@ -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) \
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user