Browse Source

Fix Info Menu with EXTRUDERS==0 (#15230)

pull/1/head
Frederik Kemner 5 years ago
committed by Scott Lahteine
parent
commit
3348a7d223
  1. 16
      Marlin/src/lcd/menu/menu_info.cpp

16
Marlin/src/lcd/menu/menu_info.cpp

@ -105,11 +105,13 @@ void menu_info_thermistors() {
#endif #endif
); );
START_SCREEN(); START_SCREEN();
#define THERMISTOR_ID TEMP_SENSOR_0 #if EXTRUDERS
#include "../thermistornames.h" #define THERMISTOR_ID TEMP_SENSOR_0
STATIC_ITEM("T0: " THERMISTOR_NAME, false, true); #include "../thermistornames.h"
STATIC_ITEM(MSG_INFO_MIN_TEMP ": " STRINGIFY(HEATER_0_MINTEMP), false); STATIC_ITEM("T0: " THERMISTOR_NAME, false, true);
STATIC_ITEM(MSG_INFO_MAX_TEMP ": " STRINGIFY(HEATER_0_MAXTEMP), false); STATIC_ITEM(MSG_INFO_MIN_TEMP ": " STRINGIFY(HEATER_0_MINTEMP), false);
STATIC_ITEM(MSG_INFO_MAX_TEMP ": " STRINGIFY(HEATER_0_MAXTEMP), false);
#endif
#if TEMP_SENSOR_1 != 0 #if TEMP_SENSOR_1 != 0
#undef THERMISTOR_ID #undef THERMISTOR_ID
@ -252,7 +254,9 @@ void menu_info() {
#else #else
MENU_ITEM(submenu, MSG_INFO_PRINTER_MENU, menu_info_printer); // Printer Info > MENU_ITEM(submenu, MSG_INFO_PRINTER_MENU, menu_info_printer); // Printer Info >
MENU_ITEM(submenu, MSG_INFO_BOARD_MENU, menu_info_board); // Board Info > MENU_ITEM(submenu, MSG_INFO_BOARD_MENU, menu_info_board); // Board Info >
MENU_ITEM(submenu, MSG_INFO_THERMISTOR_MENU, menu_info_thermistors); // Thermistors > #if EXTRUDERS
MENU_ITEM(submenu, MSG_INFO_THERMISTOR_MENU, menu_info_thermistors); // Thermistors >
#endif
#endif #endif
#if ENABLED(PRINTCOUNTER) #if ENABLED(PRINTCOUNTER)

Loading…
Cancel
Save