Browse Source

Enable the "WDR reset" menu item in DEBUG_BUILD only

Yuri D'Elia 2 years ago
parent
commit
63f870c089
1 changed files with 6 additions and 2 deletions
  1. 6 2
      Firmware/ultralcd.cpp

+ 6 - 2
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 */