Browse Source

Merge pull request #1098 from mattsch/optional_hotend_lcd

Make hotend optional when compiling with lcd support
Erik van der Zalm 10 years ago
parent
commit
83037542aa
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      Marlin/ultralcd.cpp

+ 9
- 1
Marlin/ultralcd.cpp View File

@@ -374,7 +374,9 @@ static void lcd_tune_menu()
374 374
     START_MENU();
375 375
     MENU_ITEM(back, MSG_MAIN, lcd_main_menu);
376 376
     MENU_ITEM_EDIT(int3, MSG_SPEED, &feedmultiply, 10, 999);
377
+#if TEMP_SENSOR_0 != 0
377 378
     MENU_ITEM_EDIT(int3, MSG_NOZZLE, &target_temperature[0], 0, HEATER_0_MAXTEMP - 15);
379
+#endif
378 380
 #if TEMP_SENSOR_1 != 0
379 381
     MENU_ITEM_EDIT(int3, MSG_NOZZLE1, &target_temperature[1], 0, HEATER_1_MAXTEMP - 15);
380 382
 #endif
@@ -780,7 +782,9 @@ static void lcd_control_temperature_menu()
780 782
 
781 783
     START_MENU();
782 784
     MENU_ITEM(back, MSG_CONTROL, lcd_control_menu);
785
+#if TEMP_SENSOR_1 != 0
783 786
     MENU_ITEM_EDIT(int3, MSG_NOZZLE, &target_temperature[0], 0, HEATER_0_MAXTEMP - 15);
787
+#endif
784 788
 #if TEMP_SENSOR_1 != 0
785 789
     MENU_ITEM_EDIT(int3, MSG_NOZZLE1, &target_temperature[1], 0, HEATER_1_MAXTEMP - 15);
786 790
 #endif
@@ -791,7 +795,7 @@ static void lcd_control_temperature_menu()
791 795
     MENU_ITEM_EDIT(int3, MSG_BED, &target_temperature_bed, 0, BED_MAXTEMP - 15);
792 796
 #endif
793 797
     MENU_ITEM_EDIT(int3, MSG_FAN_SPEED, &fanSpeed, 0, 255);
794
-#ifdef AUTOTEMP
798
+#if defined AUTOTEMP && (TEMP_SENSOR_0 != 0)
795 799
     MENU_ITEM_EDIT(bool, MSG_AUTOTEMP, &autotemp_enabled);
796 800
     MENU_ITEM_EDIT(float3, MSG_MIN, &autotemp_min, 0, HEATER_0_MAXTEMP - 15);
797 801
     MENU_ITEM_EDIT(float3, MSG_MAX, &autotemp_max, 0, HEATER_0_MAXTEMP - 15);
@@ -816,7 +820,9 @@ static void lcd_control_temperature_preheat_pla_settings_menu()
816 820
     START_MENU();
817 821
     MENU_ITEM(back, MSG_TEMPERATURE, lcd_control_temperature_menu);
818 822
     MENU_ITEM_EDIT(int3, MSG_FAN_SPEED, &plaPreheatFanSpeed, 0, 255);
823
+#if TEMP_SENSOR_0 != 0
819 824
     MENU_ITEM_EDIT(int3, MSG_NOZZLE, &plaPreheatHotendTemp, 0, HEATER_0_MAXTEMP - 15);
825
+#endif
820 826
 #if TEMP_SENSOR_BED != 0
821 827
     MENU_ITEM_EDIT(int3, MSG_BED, &plaPreheatHPBTemp, 0, BED_MAXTEMP - 15);
822 828
 #endif
@@ -831,7 +837,9 @@ static void lcd_control_temperature_preheat_abs_settings_menu()
831 837
     START_MENU();
832 838
     MENU_ITEM(back, MSG_TEMPERATURE, lcd_control_temperature_menu);
833 839
     MENU_ITEM_EDIT(int3, MSG_FAN_SPEED, &absPreheatFanSpeed, 0, 255);
840
+#if TEMP_SENSOR_0 != 0
834 841
     MENU_ITEM_EDIT(int3, MSG_NOZZLE, &absPreheatHotendTemp, 0, HEATER_0_MAXTEMP - 15);
842
+#endif
835 843
 #if TEMP_SENSOR_BED != 0
836 844
     MENU_ITEM_EDIT(int3, MSG_BED, &absPreheatHPBTemp, 0, BED_MAXTEMP - 15);
837 845
 #endif

Loading…
Cancel
Save