Selaa lähdekoodia

Merge pull request #1439 from clefranc/Development

Fix nozzle in temperature menu
Scott Lahteine 9 vuotta sitten
vanhempi
commit
5fd5105d44
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3
    3
      Marlin/ultralcd.cpp

+ 3
- 3
Marlin/ultralcd.cpp Näytä tiedosto

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…
Peruuta
Tallenna