Browse Source

🐛 Fix ACTION_ITEM with nullptr (#23195)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
vanilla_fb_2.0.x
Jason Smith 3 years ago
committed by Scott Lahteine
parent
commit
285d6488a3
  1. 2
      Marlin/src/lcd/menu/menu_item.h

2
Marlin/src/lcd/menu/menu_item.h

@ -55,7 +55,7 @@ class MenuItem_button : public MenuItemBase {
class MenuItem_function : public MenuItem_button {
public:
//static inline void action(PGM_P const, const uint8_t, const menuAction_t func) { (*func)(); };
static inline void action(PGM_P const, const menuAction_t func) { (*func)(); };
static inline void action(PGM_P const, const menuAction_t func) { if (func) (*func)(); };
};
// GCODES_ITEM(LABEL, GCODES)

Loading…
Cancel
Save