From 285d6488a369bd189073fae1cdfea5818a5f2275 Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Wed, 8 Dec 2021 11:10:37 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20ACTION=5FITEM=20with=20nul?= =?UTF-8?q?lptr=20(#23195)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Scott Lahteine --- Marlin/src/lcd/menu/menu_item.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/lcd/menu/menu_item.h b/Marlin/src/lcd/menu/menu_item.h index 56138a15bd..624b9b303d 100644 --- a/Marlin/src/lcd/menu/menu_item.h +++ b/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)