Skip to content

Commit

Permalink
🐛 Fix ACTION_ITEM with nullptr (#23195)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Lahteine <[email protected]>
  • Loading branch information
sjasonsmith and thinkyhead authored Dec 8, 2021
1 parent a84e040 commit 65e52c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/lcd/menu/menu_item.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 65e52c1

Please sign in to comment.