Telem. Screen function removed. Too dangerous, may block the radio in this screen...
This commit is contained in:
+8
-8
@@ -150,28 +150,28 @@ typedef void (*MenuFuncP_PROGMEM)(uint8_t event);
|
||||
#define TITLE(str) TITLEP(str)
|
||||
|
||||
#define MENU(title, tab, menu, lines_count, ...) \
|
||||
TITLE(title); \
|
||||
static const pm_uint8_t mstate_tab[] PROGMEM = __VA_ARGS__; \
|
||||
if (!check(event,menu,tab,DIM(tab),mstate_tab,DIM(mstate_tab)-1,lines_count-1)) return;
|
||||
if (!check(event,menu,tab,DIM(tab),mstate_tab,DIM(mstate_tab)-1,lines_count-1)) return; \
|
||||
TITLE(title)
|
||||
|
||||
#define SIMPLE_MENU_NOTITLE(tab, menu, lines_count) \
|
||||
if (!check_simple(event,menu,tab,DIM(tab),lines_count-1)) return;
|
||||
|
||||
#define SIMPLE_MENU(title, tab, menu, lines_count) \
|
||||
TITLE(title); \
|
||||
SIMPLE_MENU_NOTITLE(tab, menu, lines_count)
|
||||
SIMPLE_MENU_NOTITLE(tab, menu, lines_count); \
|
||||
TITLE(title)
|
||||
|
||||
#define SUBMENU(title, lines_count, ...) \
|
||||
TITLE(title); \
|
||||
static const pm_uint8_t mstate_tab[] PROGMEM = __VA_ARGS__; \
|
||||
if (!check(event,0,NULL,0,mstate_tab,DIM(mstate_tab)-1,lines_count-1)) return;
|
||||
if (!check(event,0,NULL,0,mstate_tab,DIM(mstate_tab)-1,lines_count-1)) return; \
|
||||
TITLE(title)
|
||||
|
||||
#define SIMPLE_SUBMENU_NOTITLE(lines_count) \
|
||||
if (!check_submenu_simple(event,lines_count-1)) return;
|
||||
|
||||
#define SIMPLE_SUBMENU(title, lines_count) \
|
||||
TITLE(title); \
|
||||
SIMPLE_SUBMENU_NOTITLE(lines_count)
|
||||
SIMPLE_SUBMENU_NOTITLE(lines_count); \
|
||||
TITLE(title)
|
||||
|
||||
extern const pm_char * s_warning;
|
||||
// TODO macro for s_warning
|
||||
|
||||
Reference in New Issue
Block a user