|
@@ -43,8 +43,7 @@
|
43
|
43
|
#include "duration_t.h"
|
44
|
44
|
#endif
|
45
|
45
|
|
46
|
|
-int preheatHotendTemp1, preheatBedTemp1, preheatFanSpeed1,
|
47
|
|
- preheatHotendTemp2, preheatBedTemp2, preheatFanSpeed2;
|
|
46
|
+int lcd_preheat_hotend_temp[2], lcd_preheat_bed_temp[2], lcd_preheat_fan_speed[2];
|
48
|
47
|
|
49
|
48
|
#if ENABLED(FILAMENT_LCD_DISPLAY)
|
50
|
49
|
millis_t previous_lcd_status_ms = 0;
|
|
@@ -887,29 +886,29 @@ void kill_screen(const char* lcd_msg) {
|
887
|
886
|
}
|
888
|
887
|
|
889
|
888
|
#if TEMP_SENSOR_0 != 0
|
890
|
|
- void lcd_preheat_pla0() { _lcd_preheat(0, preheatHotendTemp1, preheatBedTemp1, preheatFanSpeed1); }
|
891
|
|
- void lcd_preheat_abs0() { _lcd_preheat(0, preheatHotendTemp2, preheatBedTemp2, preheatFanSpeed2); }
|
|
889
|
+ void lcd_preheat_pla0() { _lcd_preheat(0, lcd_preheat_hotend_temp[0], lcd_preheat_bed_temp[0], lcd_preheat_fan_speed[0]); }
|
|
890
|
+ void lcd_preheat_abs0() { _lcd_preheat(0, lcd_preheat_hotend_temp[1], lcd_preheat_bed_temp[1], lcd_preheat_fan_speed[1]); }
|
892
|
891
|
#endif
|
893
|
892
|
|
894
|
893
|
#if HOTENDS > 1
|
895
|
|
- void lcd_preheat_pla1() { _lcd_preheat(1, preheatHotendTemp1, preheatBedTemp1, preheatFanSpeed1); }
|
896
|
|
- void lcd_preheat_abs1() { _lcd_preheat(1, preheatHotendTemp2, preheatBedTemp2, preheatFanSpeed2); }
|
|
894
|
+ void lcd_preheat_pla1() { _lcd_preheat(1, lcd_preheat_hotend_temp[0], lcd_preheat_bed_temp[0], lcd_preheat_fan_speed[0]); }
|
|
895
|
+ void lcd_preheat_abs1() { _lcd_preheat(1, lcd_preheat_hotend_temp[1], lcd_preheat_bed_temp[1], lcd_preheat_fan_speed[1]); }
|
897
|
896
|
#if HOTENDS > 2
|
898
|
|
- void lcd_preheat_pla2() { _lcd_preheat(2, preheatHotendTemp1, preheatBedTemp1, preheatFanSpeed1); }
|
899
|
|
- void lcd_preheat_abs2() { _lcd_preheat(2, preheatHotendTemp2, preheatBedTemp2, preheatFanSpeed2); }
|
|
897
|
+ void lcd_preheat_pla2() { _lcd_preheat(2, lcd_preheat_hotend_temp[0], lcd_preheat_bed_temp[0], lcd_preheat_fan_speed[0]); }
|
|
898
|
+ void lcd_preheat_abs2() { _lcd_preheat(2, lcd_preheat_hotend_temp[1], lcd_preheat_bed_temp[1], lcd_preheat_fan_speed[1]); }
|
900
|
899
|
#if HOTENDS > 3
|
901
|
|
- void lcd_preheat_pla3() { _lcd_preheat(3, preheatHotendTemp1, preheatBedTemp1, preheatFanSpeed1); }
|
902
|
|
- void lcd_preheat_abs3() { _lcd_preheat(3, preheatHotendTemp2, preheatBedTemp2, preheatFanSpeed2); }
|
|
900
|
+ void lcd_preheat_pla3() { _lcd_preheat(3, lcd_preheat_hotend_temp[0], lcd_preheat_bed_temp[0], lcd_preheat_fan_speed[0]); }
|
|
901
|
+ void lcd_preheat_abs3() { _lcd_preheat(3, lcd_preheat_hotend_temp[1], lcd_preheat_bed_temp[1], lcd_preheat_fan_speed[1]); }
|
903
|
902
|
#endif
|
904
|
903
|
#endif
|
905
|
904
|
|
906
|
905
|
void lcd_preheat_pla0123() {
|
907
|
906
|
#if HOTENDS > 1
|
908
|
|
- thermalManager.setTargetHotend(preheatHotendTemp1, 1);
|
|
907
|
+ thermalManager.setTargetHotend(lcd_preheat_hotend_temp[0], 1);
|
909
|
908
|
#if HOTENDS > 2
|
910
|
|
- thermalManager.setTargetHotend(preheatHotendTemp1, 2);
|
|
909
|
+ thermalManager.setTargetHotend(lcd_preheat_hotend_temp[0], 2);
|
911
|
910
|
#if HOTENDS > 3
|
912
|
|
- thermalManager.setTargetHotend(preheatHotendTemp1, 3);
|
|
911
|
+ thermalManager.setTargetHotend(lcd_preheat_hotend_temp[0], 3);
|
913
|
912
|
#endif
|
914
|
913
|
#endif
|
915
|
914
|
#endif
|
|
@@ -917,11 +916,11 @@ void kill_screen(const char* lcd_msg) {
|
917
|
916
|
}
|
918
|
917
|
void lcd_preheat_abs0123() {
|
919
|
918
|
#if HOTENDS > 1
|
920
|
|
- thermalManager.setTargetHotend(preheatHotendTemp2, 1);
|
|
919
|
+ thermalManager.setTargetHotend(lcd_preheat_hotend_temp[1], 1);
|
921
|
920
|
#if HOTENDS > 2
|
922
|
|
- thermalManager.setTargetHotend(preheatHotendTemp2, 2);
|
|
921
|
+ thermalManager.setTargetHotend(lcd_preheat_hotend_temp[1], 2);
|
923
|
922
|
#if HOTENDS > 3
|
924
|
|
- thermalManager.setTargetHotend(preheatHotendTemp2, 3);
|
|
923
|
+ thermalManager.setTargetHotend(lcd_preheat_hotend_temp[1], 3);
|
925
|
924
|
#endif
|
926
|
925
|
#endif
|
927
|
926
|
#endif
|
|
@@ -931,8 +930,8 @@ void kill_screen(const char* lcd_msg) {
|
931
|
930
|
#endif // HOTENDS > 1
|
932
|
931
|
|
933
|
932
|
#if TEMP_SENSOR_BED != 0
|
934
|
|
- void lcd_preheat_pla_bedonly() { _lcd_preheat(0, 0, preheatBedTemp1, preheatFanSpeed1); }
|
935
|
|
- void lcd_preheat_abs_bedonly() { _lcd_preheat(0, 0, preheatBedTemp2, preheatFanSpeed2); }
|
|
933
|
+ void lcd_preheat_pla_bedonly() { _lcd_preheat(0, 0, lcd_preheat_bed_temp[0], lcd_preheat_fan_speed[0]); }
|
|
934
|
+ void lcd_preheat_abs_bedonly() { _lcd_preheat(0, 0, lcd_preheat_bed_temp[1], lcd_preheat_fan_speed[1]); }
|
936
|
935
|
#endif
|
937
|
936
|
|
938
|
937
|
#if TEMP_SENSOR_0 != 0 && (TEMP_SENSOR_1 != 0 || TEMP_SENSOR_2 != 0 || TEMP_SENSOR_3 != 0 || TEMP_SENSOR_BED != 0)
|
|
@@ -1766,20 +1765,15 @@ void kill_screen(const char* lcd_msg) {
|
1766
|
1765
|
END_MENU();
|
1767
|
1766
|
}
|
1768
|
1767
|
|
1769
|
|
- /**
|
1770
|
|
- *
|
1771
|
|
- * "Temperature" > "Preheat PLA conf" submenu
|
1772
|
|
- *
|
1773
|
|
- */
|
1774
|
|
- static void lcd_control_temperature_preheat_pla_settings_menu() {
|
|
1768
|
+ static void _lcd_control_temperature_preheat_settings_menu(uint8_t material) {
|
1775
|
1769
|
START_MENU();
|
1776
|
1770
|
MENU_BACK(MSG_TEMPERATURE);
|
1777
|
|
- MENU_ITEM_EDIT(int3, MSG_FAN_SPEED, &preheatFanSpeed1, 0, 255);
|
|
1771
|
+ MENU_ITEM_EDIT(int3, MSG_FAN_SPEED, &lcd_preheat_fan_speed[material], 0, 255);
|
1778
|
1772
|
#if TEMP_SENSOR_0 != 0
|
1779
|
|
- MENU_ITEM_EDIT(int3, MSG_NOZZLE, &preheatHotendTemp1, HEATER_0_MINTEMP, HEATER_0_MAXTEMP - 15);
|
|
1773
|
+ MENU_ITEM_EDIT(int3, MSG_NOZZLE, &lcd_preheat_hotend_temp[material], HEATER_0_MINTEMP, HEATER_0_MAXTEMP - 15);
|
1780
|
1774
|
#endif
|
1781
|
1775
|
#if TEMP_SENSOR_BED != 0
|
1782
|
|
- MENU_ITEM_EDIT(int3, MSG_BED, &preheatBedTemp1, BED_MINTEMP, BED_MAXTEMP - 15);
|
|
1776
|
+ MENU_ITEM_EDIT(int3, MSG_BED, &lcd_preheat_bed_temp[material], BED_MINTEMP, BED_MAXTEMP - 15);
|
1783
|
1777
|
#endif
|
1784
|
1778
|
#if ENABLED(EEPROM_SETTINGS)
|
1785
|
1779
|
MENU_ITEM(function, MSG_STORE_EPROM, Config_StoreSettings);
|
|
@@ -1789,24 +1783,17 @@ void kill_screen(const char* lcd_msg) {
|
1789
|
1783
|
|
1790
|
1784
|
/**
|
1791
|
1785
|
*
|
|
1786
|
+ * "Temperature" > "Preheat PLA conf" submenu
|
|
1787
|
+ *
|
|
1788
|
+ */
|
|
1789
|
+ static void lcd_control_temperature_preheat_pla_settings_menu() { _lcd_control_temperature_preheat_settings_menu(0); }
|
|
1790
|
+
|
|
1791
|
+ /**
|
|
1792
|
+ *
|
1792
|
1793
|
* "Temperature" > "Preheat ABS conf" submenu
|
1793
|
1794
|
*
|
1794
|
1795
|
*/
|
1795
|
|
- static void lcd_control_temperature_preheat_abs_settings_menu() {
|
1796
|
|
- START_MENU();
|
1797
|
|
- MENU_BACK(MSG_TEMPERATURE);
|
1798
|
|
- MENU_ITEM_EDIT(int3, MSG_FAN_SPEED, &preheatFanSpeed2, 0, 255);
|
1799
|
|
- #if TEMP_SENSOR_0 != 0
|
1800
|
|
- MENU_ITEM_EDIT(int3, MSG_NOZZLE, &preheatHotendTemp2, HEATER_0_MINTEMP, HEATER_0_MAXTEMP - 15);
|
1801
|
|
- #endif
|
1802
|
|
- #if TEMP_SENSOR_BED != 0
|
1803
|
|
- MENU_ITEM_EDIT(int3, MSG_BED, &preheatBedTemp2, BED_MINTEMP, BED_MAXTEMP - 15);
|
1804
|
|
- #endif
|
1805
|
|
- #if ENABLED(EEPROM_SETTINGS)
|
1806
|
|
- MENU_ITEM(function, MSG_STORE_EPROM, Config_StoreSettings);
|
1807
|
|
- #endif
|
1808
|
|
- END_MENU();
|
1809
|
|
- }
|
|
1796
|
+ static void lcd_control_temperature_preheat_abs_settings_menu() { _lcd_control_temperature_preheat_settings_menu(1); }
|
1810
|
1797
|
|
1811
|
1798
|
static void _reset_acceleration_rates() { planner.reset_acceleration_rates(); }
|
1812
|
1799
|
static void _planner_refresh_positioning() { planner.refresh_positioning(); }
|