|
@@ -1579,7 +1579,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
1579
|
1579
|
*/
|
1580
|
1580
|
void _lcd_preheat(const int16_t endnum, const int16_t temph, const int16_t tempb, const int16_t fan) {
|
1581
|
1581
|
if (temph > 0) thermalManager.setTargetHotend(min(heater_maxtemp[endnum], temph), endnum);
|
1582
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1582
|
+ #if HAS_HEATED_BED
|
1583
|
1583
|
if (tempb >= 0) thermalManager.setTargetBed(tempb);
|
1584
|
1584
|
#else
|
1585
|
1585
|
UNUSED(tempb);
|
|
@@ -1596,10 +1596,10 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
1596
|
1596
|
lcd_return_to_status();
|
1597
|
1597
|
}
|
1598
|
1598
|
|
1599
|
|
- #if TEMP_SENSOR_0 != 0
|
|
1599
|
+ #if HAS_TEMP_HOTEND
|
1600
|
1600
|
void lcd_preheat_m1_e0_only() { _lcd_preheat(0, lcd_preheat_hotend_temp[0], -1, lcd_preheat_fan_speed[0]); }
|
1601
|
1601
|
void lcd_preheat_m2_e0_only() { _lcd_preheat(0, lcd_preheat_hotend_temp[1], -1, lcd_preheat_fan_speed[1]); }
|
1602
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1602
|
+ #if HAS_HEATED_BED
|
1603
|
1603
|
void lcd_preheat_m1_e0() { _lcd_preheat(0, lcd_preheat_hotend_temp[0], lcd_preheat_bed_temp[0], lcd_preheat_fan_speed[0]); }
|
1604
|
1604
|
void lcd_preheat_m2_e0() { _lcd_preheat(0, lcd_preheat_hotend_temp[1], lcd_preheat_bed_temp[1], lcd_preheat_fan_speed[1]); }
|
1605
|
1605
|
#endif
|
|
@@ -1608,28 +1608,28 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
1608
|
1608
|
#if HOTENDS > 1
|
1609
|
1609
|
void lcd_preheat_m1_e1_only() { _lcd_preheat(1, lcd_preheat_hotend_temp[0], -1, lcd_preheat_fan_speed[0]); }
|
1610
|
1610
|
void lcd_preheat_m2_e1_only() { _lcd_preheat(1, lcd_preheat_hotend_temp[1], -1, lcd_preheat_fan_speed[1]); }
|
1611
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1611
|
+ #if HAS_HEATED_BED
|
1612
|
1612
|
void lcd_preheat_m1_e1() { _lcd_preheat(1, lcd_preheat_hotend_temp[0], lcd_preheat_bed_temp[0], lcd_preheat_fan_speed[0]); }
|
1613
|
1613
|
void lcd_preheat_m2_e1() { _lcd_preheat(1, lcd_preheat_hotend_temp[1], lcd_preheat_bed_temp[1], lcd_preheat_fan_speed[1]); }
|
1614
|
1614
|
#endif
|
1615
|
1615
|
#if HOTENDS > 2
|
1616
|
1616
|
void lcd_preheat_m1_e2_only() { _lcd_preheat(2, lcd_preheat_hotend_temp[0], -1, lcd_preheat_fan_speed[0]); }
|
1617
|
1617
|
void lcd_preheat_m2_e2_only() { _lcd_preheat(2, lcd_preheat_hotend_temp[1], -1, lcd_preheat_fan_speed[1]); }
|
1618
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1618
|
+ #if HAS_HEATED_BED
|
1619
|
1619
|
void lcd_preheat_m1_e2() { _lcd_preheat(2, lcd_preheat_hotend_temp[0], lcd_preheat_bed_temp[0], lcd_preheat_fan_speed[0]); }
|
1620
|
1620
|
void lcd_preheat_m2_e2() { _lcd_preheat(2, lcd_preheat_hotend_temp[1], lcd_preheat_bed_temp[1], lcd_preheat_fan_speed[1]); }
|
1621
|
1621
|
#endif
|
1622
|
1622
|
#if HOTENDS > 3
|
1623
|
1623
|
void lcd_preheat_m1_e3_only() { _lcd_preheat(3, lcd_preheat_hotend_temp[0], -1, lcd_preheat_fan_speed[0]); }
|
1624
|
1624
|
void lcd_preheat_m2_e3_only() { _lcd_preheat(3, lcd_preheat_hotend_temp[1], -1, lcd_preheat_fan_speed[1]); }
|
1625
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1625
|
+ #if HAS_HEATED_BED
|
1626
|
1626
|
void lcd_preheat_m1_e3() { _lcd_preheat(3, lcd_preheat_hotend_temp[0], lcd_preheat_bed_temp[0], lcd_preheat_fan_speed[0]); }
|
1627
|
1627
|
void lcd_preheat_m2_e3() { _lcd_preheat(3, lcd_preheat_hotend_temp[1], lcd_preheat_bed_temp[1], lcd_preheat_fan_speed[1]); }
|
1628
|
1628
|
#endif
|
1629
|
1629
|
#if HOTENDS > 4
|
1630
|
1630
|
void lcd_preheat_m1_e4_only() { _lcd_preheat(4, lcd_preheat_hotend_temp[0], -1, lcd_preheat_fan_speed[0]); }
|
1631
|
1631
|
void lcd_preheat_m2_e4_only() { _lcd_preheat(4, lcd_preheat_hotend_temp[1], -1, lcd_preheat_fan_speed[1]); }
|
1632
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1632
|
+ #if HAS_HEATED_BED
|
1633
|
1633
|
void lcd_preheat_m1_e4() { _lcd_preheat(4, lcd_preheat_hotend_temp[0], lcd_preheat_bed_temp[0], lcd_preheat_fan_speed[0]); }
|
1634
|
1634
|
void lcd_preheat_m2_e4() { _lcd_preheat(4, lcd_preheat_hotend_temp[1], lcd_preheat_bed_temp[1], lcd_preheat_fan_speed[1]); }
|
1635
|
1635
|
#endif
|
|
@@ -1650,7 +1650,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
1650
|
1650
|
#endif // HOTENDS > 3
|
1651
|
1651
|
#endif // HOTENDS > 2
|
1652
|
1652
|
#endif // HOTENDS > 1
|
1653
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1653
|
+ #if HAS_HEATED_BED
|
1654
|
1654
|
lcd_preheat_m1_e0();
|
1655
|
1655
|
#else
|
1656
|
1656
|
lcd_preheat_m1_e0_only();
|
|
@@ -1669,7 +1669,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
1669
|
1669
|
#endif // HOTENDS > 3
|
1670
|
1670
|
#endif // HOTENDS > 2
|
1671
|
1671
|
#endif // HOTENDS > 1
|
1672
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1672
|
+ #if HAS_HEATED_BED
|
1673
|
1673
|
lcd_preheat_m2_e0();
|
1674
|
1674
|
#else
|
1675
|
1675
|
lcd_preheat_m2_e0_only();
|
|
@@ -1678,25 +1678,25 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
1678
|
1678
|
|
1679
|
1679
|
#endif // HOTENDS > 1
|
1680
|
1680
|
|
1681
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1681
|
+ #if HAS_HEATED_BED
|
1682
|
1682
|
void lcd_preheat_m1_bedonly() { _lcd_preheat(0, 0, lcd_preheat_bed_temp[0], lcd_preheat_fan_speed[0]); }
|
1683
|
1683
|
void lcd_preheat_m2_bedonly() { _lcd_preheat(0, 0, lcd_preheat_bed_temp[1], lcd_preheat_fan_speed[1]); }
|
1684
|
1684
|
#endif
|
1685
|
1685
|
|
1686
|
|
- #if TEMP_SENSOR_0 != 0 && (TEMP_SENSOR_1 != 0 || TEMP_SENSOR_2 != 0 || TEMP_SENSOR_3 != 0 || TEMP_SENSOR_4 != 0 || TEMP_SENSOR_BED != 0)
|
|
1686
|
+ #if HAS_TEMP_HOTEND && (TEMP_SENSOR_1 != 0 || TEMP_SENSOR_2 != 0 || TEMP_SENSOR_3 != 0 || TEMP_SENSOR_4 != 0 || HAS_HEATED_BED)
|
1687
|
1687
|
|
1688
|
1688
|
void lcd_preheat_m1_menu() {
|
1689
|
1689
|
START_MENU();
|
1690
|
1690
|
MENU_BACK(MSG_PREPARE);
|
1691
|
1691
|
#if HOTENDS == 1
|
1692
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1692
|
+ #if HAS_HEATED_BED
|
1693
|
1693
|
MENU_ITEM(function, MSG_PREHEAT_1, lcd_preheat_m1_e0);
|
1694
|
1694
|
MENU_ITEM(function, MSG_PREHEAT_1_END, lcd_preheat_m1_e0_only);
|
1695
|
1695
|
#else
|
1696
|
1696
|
MENU_ITEM(function, MSG_PREHEAT_1, lcd_preheat_m1_e0_only);
|
1697
|
1697
|
#endif
|
1698
|
1698
|
#else
|
1699
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1699
|
+ #if HAS_HEATED_BED
|
1700
|
1700
|
MENU_ITEM(function, MSG_PREHEAT_1_N MSG_H1, lcd_preheat_m1_e0);
|
1701
|
1701
|
MENU_ITEM(function, MSG_PREHEAT_1_END " " MSG_E1, lcd_preheat_m1_e0_only);
|
1702
|
1702
|
MENU_ITEM(function, MSG_PREHEAT_1_N MSG_H2, lcd_preheat_m1_e1);
|
|
@@ -1706,21 +1706,21 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
1706
|
1706
|
MENU_ITEM(function, MSG_PREHEAT_1_N MSG_H2, lcd_preheat_m1_e1_only);
|
1707
|
1707
|
#endif
|
1708
|
1708
|
#if HOTENDS > 2
|
1709
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1709
|
+ #if HAS_HEATED_BED
|
1710
|
1710
|
MENU_ITEM(function, MSG_PREHEAT_1_N MSG_H3, lcd_preheat_m1_e2);
|
1711
|
1711
|
MENU_ITEM(function, MSG_PREHEAT_1_END " " MSG_E3, lcd_preheat_m1_e2_only);
|
1712
|
1712
|
#else
|
1713
|
1713
|
MENU_ITEM(function, MSG_PREHEAT_1_N MSG_H3, lcd_preheat_m1_e2_only);
|
1714
|
1714
|
#endif
|
1715
|
1715
|
#if HOTENDS > 3
|
1716
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1716
|
+ #if HAS_HEATED_BED
|
1717
|
1717
|
MENU_ITEM(function, MSG_PREHEAT_1_N MSG_H4, lcd_preheat_m1_e3);
|
1718
|
1718
|
MENU_ITEM(function, MSG_PREHEAT_1_END " " MSG_E4, lcd_preheat_m1_e3_only);
|
1719
|
1719
|
#else
|
1720
|
1720
|
MENU_ITEM(function, MSG_PREHEAT_1_N MSG_H4, lcd_preheat_m1_e3_only);
|
1721
|
1721
|
#endif
|
1722
|
1722
|
#if HOTENDS > 4
|
1723
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1723
|
+ #if HAS_HEATED_BED
|
1724
|
1724
|
MENU_ITEM(function, MSG_PREHEAT_1_N MSG_H5, lcd_preheat_m1_e4);
|
1725
|
1725
|
MENU_ITEM(function, MSG_PREHEAT_1_END " " MSG_E5, lcd_preheat_m1_e4_only);
|
1726
|
1726
|
#else
|
|
@@ -1731,7 +1731,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
1731
|
1731
|
#endif // HOTENDS > 2
|
1732
|
1732
|
MENU_ITEM(function, MSG_PREHEAT_1_ALL, lcd_preheat_m1_all);
|
1733
|
1733
|
#endif // HOTENDS > 1
|
1734
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1734
|
+ #if HAS_HEATED_BED
|
1735
|
1735
|
MENU_ITEM(function, MSG_PREHEAT_1_BEDONLY, lcd_preheat_m1_bedonly);
|
1736
|
1736
|
#endif
|
1737
|
1737
|
END_MENU();
|
|
@@ -1741,14 +1741,14 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
1741
|
1741
|
START_MENU();
|
1742
|
1742
|
MENU_BACK(MSG_PREPARE);
|
1743
|
1743
|
#if HOTENDS == 1
|
1744
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1744
|
+ #if HAS_HEATED_BED
|
1745
|
1745
|
MENU_ITEM(function, MSG_PREHEAT_2, lcd_preheat_m2_e0);
|
1746
|
1746
|
MENU_ITEM(function, MSG_PREHEAT_2_END, lcd_preheat_m2_e0_only);
|
1747
|
1747
|
#else
|
1748
|
1748
|
MENU_ITEM(function, MSG_PREHEAT_2, lcd_preheat_m2_e0_only);
|
1749
|
1749
|
#endif
|
1750
|
1750
|
#else
|
1751
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1751
|
+ #if HAS_HEATED_BED
|
1752
|
1752
|
MENU_ITEM(function, MSG_PREHEAT_2_N MSG_H1, lcd_preheat_m2_e0);
|
1753
|
1753
|
MENU_ITEM(function, MSG_PREHEAT_2_END " " MSG_E1, lcd_preheat_m2_e0_only);
|
1754
|
1754
|
MENU_ITEM(function, MSG_PREHEAT_2_N MSG_H2, lcd_preheat_m2_e1);
|
|
@@ -1758,21 +1758,21 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
1758
|
1758
|
MENU_ITEM(function, MSG_PREHEAT_2_N MSG_H2, lcd_preheat_m2_e1_only);
|
1759
|
1759
|
#endif
|
1760
|
1760
|
#if HOTENDS > 2
|
1761
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1761
|
+ #if HAS_HEATED_BED
|
1762
|
1762
|
MENU_ITEM(function, MSG_PREHEAT_2_N MSG_H3, lcd_preheat_m2_e2);
|
1763
|
1763
|
MENU_ITEM(function, MSG_PREHEAT_2_END " " MSG_E3, lcd_preheat_m2_e2_only);
|
1764
|
1764
|
#else
|
1765
|
1765
|
MENU_ITEM(function, MSG_PREHEAT_2_N MSG_H3, lcd_preheat_m2_e2_only);
|
1766
|
1766
|
#endif
|
1767
|
1767
|
#if HOTENDS > 3
|
1768
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1768
|
+ #if HAS_HEATED_BED
|
1769
|
1769
|
MENU_ITEM(function, MSG_PREHEAT_2_N MSG_H4, lcd_preheat_m2_e3);
|
1770
|
1770
|
MENU_ITEM(function, MSG_PREHEAT_2_END " " MSG_E4, lcd_preheat_m2_e3_only);
|
1771
|
1771
|
#else
|
1772
|
1772
|
MENU_ITEM(function, MSG_PREHEAT_2_N MSG_H4, lcd_preheat_m2_e3_only);
|
1773
|
1773
|
#endif
|
1774
|
1774
|
#if HOTENDS > 4
|
1775
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1775
|
+ #if HAS_HEATED_BED
|
1776
|
1776
|
MENU_ITEM(function, MSG_PREHEAT_2_N MSG_H5, lcd_preheat_m2_e4);
|
1777
|
1777
|
MENU_ITEM(function, MSG_PREHEAT_2_END " " MSG_E5, lcd_preheat_m2_e4_only);
|
1778
|
1778
|
#else
|
|
@@ -1783,13 +1783,13 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
1783
|
1783
|
#endif // HOTENDS > 2
|
1784
|
1784
|
MENU_ITEM(function, MSG_PREHEAT_2_ALL, lcd_preheat_m2_all);
|
1785
|
1785
|
#endif // HOTENDS > 1
|
1786
|
|
- #if TEMP_SENSOR_BED != 0
|
|
1786
|
+ #if HAS_HEATED_BED
|
1787
|
1787
|
MENU_ITEM(function, MSG_PREHEAT_2_BEDONLY, lcd_preheat_m2_bedonly);
|
1788
|
1788
|
#endif
|
1789
|
1789
|
END_MENU();
|
1790
|
1790
|
}
|
1791
|
1791
|
|
1792
|
|
- #endif // TEMP_SENSOR_0 && (TEMP_SENSOR_1 || TEMP_SENSOR_2 || TEMP_SENSOR_3 || TEMP_SENSOR_4 || TEMP_SENSOR_BED)
|
|
1792
|
+ #endif // HAS_TEMP_HOTEND && (TEMP_SENSOR_1 || TEMP_SENSOR_2 || TEMP_SENSOR_3 || TEMP_SENSOR_4 || TEMP_SENSOR_BED)
|
1793
|
1793
|
|
1794
|
1794
|
void lcd_cooldown() {
|
1795
|
1795
|
#if FAN_COUNT > 0
|
|
@@ -2780,7 +2780,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
2780
|
2780
|
}
|
2781
|
2781
|
#endif // ADVANCED_PAUSE_FEATURE
|
2782
|
2782
|
|
2783
|
|
- #if TEMP_SENSOR_0 != 0
|
|
2783
|
+ #if HAS_TEMP_HOTEND
|
2784
|
2784
|
|
2785
|
2785
|
//
|
2786
|
2786
|
// Cooldown
|
|
@@ -2795,7 +2795,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
2795
|
2795
|
//
|
2796
|
2796
|
// Preheat for Material 1 and 2
|
2797
|
2797
|
//
|
2798
|
|
- #if TEMP_SENSOR_1 != 0 || TEMP_SENSOR_2 != 0 || TEMP_SENSOR_3 != 0 || TEMP_SENSOR_4 != 0 || TEMP_SENSOR_BED != 0
|
|
2798
|
+ #if TEMP_SENSOR_1 != 0 || TEMP_SENSOR_2 != 0 || TEMP_SENSOR_3 != 0 || TEMP_SENSOR_4 != 0 || HAS_HEATED_BED
|
2799
|
2799
|
MENU_ITEM(submenu, MSG_PREHEAT_1, lcd_preheat_m1_menu);
|
2800
|
2800
|
MENU_ITEM(submenu, MSG_PREHEAT_2, lcd_preheat_m2_menu);
|
2801
|
2801
|
#else
|
|
@@ -2803,7 +2803,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
2803
|
2803
|
MENU_ITEM(function, MSG_PREHEAT_2, lcd_preheat_m2_e0_only);
|
2804
|
2804
|
#endif
|
2805
|
2805
|
|
2806
|
|
- #endif // TEMP_SENSOR_0 != 0
|
|
2806
|
+ #endif // HAS_TEMP_HOTEND
|
2807
|
2807
|
|
2808
|
2808
|
//
|
2809
|
2809
|
// BLTouch Self-Test and Reset
|
|
@@ -3538,7 +3538,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
3538
|
3538
|
//
|
3539
|
3539
|
// Autotemp, Min, Max, Fact
|
3540
|
3540
|
//
|
3541
|
|
- #if ENABLED(AUTOTEMP) && (TEMP_SENSOR_0 != 0)
|
|
3541
|
+ #if ENABLED(AUTOTEMP) && (HAS_TEMP_HOTEND)
|
3542
|
3542
|
MENU_ITEM_EDIT(bool, MSG_AUTOTEMP, &planner.autotemp_enabled);
|
3543
|
3543
|
MENU_ITEM_EDIT(float3, MSG_MIN, &planner.autotemp_min, 0, HEATER_0_MAXTEMP - 15);
|
3544
|
3544
|
MENU_ITEM_EDIT(float3, MSG_MAX, &planner.autotemp_max, 0, HEATER_0_MAXTEMP - 15);
|
|
@@ -3633,10 +3633,10 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
3633
|
3633
|
START_MENU();
|
3634
|
3634
|
MENU_BACK(MSG_TEMPERATURE);
|
3635
|
3635
|
MENU_ITEM_EDIT(int3, MSG_FAN_SPEED, &lcd_preheat_fan_speed[material], 0, 255);
|
3636
|
|
- #if TEMP_SENSOR_0 != 0
|
|
3636
|
+ #if HAS_TEMP_HOTEND
|
3637
|
3637
|
MENU_ITEM_EDIT(int3, MSG_NOZZLE, &lcd_preheat_hotend_temp[material], MINTEMP_ALL, MAXTEMP_ALL - 15);
|
3638
|
3638
|
#endif
|
3639
|
|
- #if TEMP_SENSOR_BED != 0
|
|
3639
|
+ #if HAS_HEATED_BED
|
3640
|
3640
|
MENU_ITEM_EDIT(int3, MSG_BED, &lcd_preheat_bed_temp[material], BED_MINTEMP, BED_MAXTEMP - 15);
|
3641
|
3641
|
#endif
|
3642
|
3642
|
#if ENABLED(EEPROM_SETTINGS)
|
|
@@ -4154,7 +4154,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
4154
|
4154
|
STATIC_ITEM(MSG_INFO_MAX_TEMP ": " STRINGIFY(HEATER_4_MAXTEMP), false);
|
4155
|
4155
|
#endif
|
4156
|
4156
|
|
4157
|
|
- #if TEMP_SENSOR_BED != 0
|
|
4157
|
+ #if HAS_HEATED_BED
|
4158
|
4158
|
#undef THERMISTOR_ID
|
4159
|
4159
|
#define THERMISTOR_ID TEMP_SENSOR_BED
|
4160
|
4160
|
#include "thermistornames.h"
|