From 63f870c08912f01adedf63893a37d090c9b6a384 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Thu, 10 Jun 2021 16:30:59 +0200 Subject: [PATCH] Enable the "WDR reset" menu item in DEBUG_BUILD only --- Firmware/ultralcd.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 3eecb765..ba8f42e7 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -1812,13 +1812,15 @@ static void lcd_dump_memory() lcd_return_to_status(); } +#ifdef DEBUG_BUILD static void lcd_wdr_crash() { while (1); } - #endif +#endif //MENU_DUMP + //! @brief Show Support Menu //! @@ -2013,8 +2015,10 @@ static void lcd_support_menu() #ifdef MENU_DUMP MENU_ITEM_FUNCTION_P(_i("Dump memory"), lcd_dump_memory); +#ifdef DEBUG_BUILD MENU_ITEM_FUNCTION_P(PSTR("WDR crash"), lcd_wdr_crash); -#endif +#endif //DEBUG_BUILD +#endif //MENU_DUMP #ifdef DEBUG_BUILD MENU_ITEM_SUBMENU_P(PSTR("Debug"), lcd_menu_debug);////MSG_DEBUG c=18 #endif /* DEBUG_BUILD */