Browse Source

Add a typedef for MENU_ITEM(function,…) functions

Scott Lahteine 7 years ago
parent
commit
a8b8d4e85e
2 changed files with 2 additions and 1 deletions
  1. 1
    1
      Marlin/src/lcd/ultralcd.cpp
  2. 1
    0
      Marlin/src/lcd/ultralcd.h

+ 1
- 1
Marlin/src/lcd/ultralcd.cpp View File

212
   void _menu_action_back();
212
   void _menu_action_back();
213
   void menu_action_submenu(screenFunc_t data);
213
   void menu_action_submenu(screenFunc_t data);
214
   void menu_action_gcode(const char* pgcode);
214
   void menu_action_gcode(const char* pgcode);
215
-  void menu_action_function(screenFunc_t data);
215
+  void menu_action_function(menuAction_t data);
216
 
216
 
217
   #define DECLARE_MENU_EDIT_TYPE(_type, _name) \
217
   #define DECLARE_MENU_EDIT_TYPE(_type, _name) \
218
     bool _menu_edit_ ## _name(); \
218
     bool _menu_edit_ ## _name(); \

+ 1
- 0
Marlin/src/lcd/ultralcd.h View File

84
 
84
 
85
     // Function pointer to menu functions.
85
     // Function pointer to menu functions.
86
     typedef void (*screenFunc_t)();
86
     typedef void (*screenFunc_t)();
87
+    typedef void (*menuAction_t)();
87
 
88
 
88
     void lcd_goto_screen(screenFunc_t screen, const uint32_t encoder=0);
89
     void lcd_goto_screen(screenFunc_t screen, const uint32_t encoder=0);
89
 
90
 

Loading…
Cancel
Save