Explorar el Código

Add a typedef for MENU_ITEM(function,…) functions

Scott Lahteine hace 7 años
padre
commit
a8b8d4e85e
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1
    1
      Marlin/src/lcd/ultralcd.cpp
  2. 1
    0
      Marlin/src/lcd/ultralcd.h

+ 1
- 1
Marlin/src/lcd/ultralcd.cpp Ver fichero

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 Ver fichero

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…
Cancelar
Guardar