Enable the "WDR reset" menu item in DEBUG_BUILD only
This commit is contained in:
parent
0362b6484f
commit
63f870c089
@ -1812,13 +1812,15 @@ static void lcd_dump_memory()
|
|||||||
lcd_return_to_status();
|
lcd_return_to_status();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DEBUG_BUILD
|
||||||
static void lcd_wdr_crash()
|
static void lcd_wdr_crash()
|
||||||
{
|
{
|
||||||
while (1);
|
while (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif //MENU_DUMP
|
||||||
|
|
||||||
|
|
||||||
//! @brief Show Support Menu
|
//! @brief Show Support Menu
|
||||||
//!
|
//!
|
||||||
@ -2013,8 +2015,10 @@ static void lcd_support_menu()
|
|||||||
|
|
||||||
#ifdef MENU_DUMP
|
#ifdef MENU_DUMP
|
||||||
MENU_ITEM_FUNCTION_P(_i("Dump memory"), lcd_dump_memory);
|
MENU_ITEM_FUNCTION_P(_i("Dump memory"), lcd_dump_memory);
|
||||||
|
#ifdef DEBUG_BUILD
|
||||||
MENU_ITEM_FUNCTION_P(PSTR("WDR crash"), lcd_wdr_crash);
|
MENU_ITEM_FUNCTION_P(PSTR("WDR crash"), lcd_wdr_crash);
|
||||||
#endif
|
#endif //DEBUG_BUILD
|
||||||
|
#endif //MENU_DUMP
|
||||||
#ifdef DEBUG_BUILD
|
#ifdef DEBUG_BUILD
|
||||||
MENU_ITEM_SUBMENU_P(PSTR("Debug"), lcd_menu_debug);////MSG_DEBUG c=18
|
MENU_ITEM_SUBMENU_P(PSTR("Debug"), lcd_menu_debug);////MSG_DEBUG c=18
|
||||||
#endif /* DEBUG_BUILD */
|
#endif /* DEBUG_BUILD */
|
||||||
|
Loading…
Reference in New Issue
Block a user