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 AlexColello committed Jan 14, 2022
1 parent 015c444 commit 9fad95f
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 9fad95f

Please sign in to comment.