Skip to content

Commit

Permalink
πŸ› Fix ACTION_ITEM with nullptr (MarlinFirmware#23195)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
  • Loading branch information
2 people authored and mh-dm committed May 15, 2022
1 parent 54e3969 commit 5e1a370
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 5e1a370

Please sign in to comment.