Add a typedef for MENU_ITEM(function,…) functions
This commit is contained in:
		| @@ -212,7 +212,7 @@ uint16_t max_display_update_time = 0; | ||||
|   void _menu_action_back(); | ||||
|   void menu_action_submenu(screenFunc_t data); | ||||
|   void menu_action_gcode(const char* pgcode); | ||||
|   void menu_action_function(screenFunc_t data); | ||||
|   void menu_action_function(menuAction_t data); | ||||
|  | ||||
|   #define DECLARE_MENU_EDIT_TYPE(_type, _name) \ | ||||
|     bool _menu_edit_ ## _name(); \ | ||||
|   | ||||
| @@ -84,6 +84,7 @@ | ||||
|  | ||||
|     // Function pointer to menu functions. | ||||
|     typedef void (*screenFunc_t)(); | ||||
|     typedef void (*menuAction_t)(); | ||||
|  | ||||
|     void lcd_goto_screen(screenFunc_t screen, const uint32_t encoder=0); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user