Browse Source

Update ultralcd.cpp

Fix number of nozzle displayed in temperature menu.
Christian Lefrançois 10 years ago
parent
commit
33408a4dfc
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/ultralcd.cpp

+ 3
- 3
Marlin/ultralcd.cpp View File

811
 #if TEMP_SENSOR_0 != 0
811
 #if TEMP_SENSOR_0 != 0
812
   MENU_ITEM_EDIT(int3, MSG_NOZZLE, &target_temperature[0], 0, HEATER_0_MAXTEMP - 15);
812
   MENU_ITEM_EDIT(int3, MSG_NOZZLE, &target_temperature[0], 0, HEATER_0_MAXTEMP - 15);
813
 #endif
813
 #endif
814
-#if TEMP_SENSOR_1 != 0
814
+#if TEMP_SENSOR_1 != 0 && EXTRUDERS > 1
815
   MENU_ITEM_EDIT(int3, MSG_NOZZLE " 2", &target_temperature[1], 0, HEATER_1_MAXTEMP - 15);
815
   MENU_ITEM_EDIT(int3, MSG_NOZZLE " 2", &target_temperature[1], 0, HEATER_1_MAXTEMP - 15);
816
 #endif
816
 #endif
817
-#if TEMP_SENSOR_2 != 0
817
+#if TEMP_SENSOR_2 != 0 && EXTRUDERS > 2
818
   MENU_ITEM_EDIT(int3, MSG_NOZZLE " 3", &target_temperature[2], 0, HEATER_2_MAXTEMP - 15);
818
   MENU_ITEM_EDIT(int3, MSG_NOZZLE " 3", &target_temperature[2], 0, HEATER_2_MAXTEMP - 15);
819
 #endif
819
 #endif
820
-#if TEMP_SENSOR_3 != 0
820
+#if TEMP_SENSOR_3 != 0 && EXTRUDERS > 3
821
   MENU_ITEM_EDIT(int3, MSG_NOZZLE " 4", &target_temperature[3], 0, HEATER_3_MAXTEMP - 15);
821
   MENU_ITEM_EDIT(int3, MSG_NOZZLE " 4", &target_temperature[3], 0, HEATER_3_MAXTEMP - 15);
822
 #endif
822
 #endif
823
 #if TEMP_SENSOR_BED != 0
823
 #if TEMP_SENSOR_BED != 0

Loading…
Cancel
Save