🎨 Define HAS_PREHEAT conditional

This commit is contained in:
Scott Lahteine authored and Scott Lahteine committed 2021-12-25 00:46:48 -06:00
1 parent 1fd4258423
commit 84f9490149
55 files changed
+183 -182

No files matched your search

+5 -5
View File
@@ -317,7 +317,7 @@ typedef struct SettingsDataStruct {
//
// Material Presets
//
#if PREHEAT_COUNT
#if HAS_PREHEAT
preheat_t ui_material_preset[PREHEAT_COUNT]; // M145 S0 H B F
#endif
@@ -918,7 +918,7 @@ void MarlinSettings::postprocess() {
//
// LCD Preheat settings
//
#if PREHEAT_COUNT
#if HAS_PREHEAT
_FIELD_TEST(ui_material_preset);
EEPROM_WRITE(ui.material_preset);
#endif
@@ -1786,7 +1786,7 @@ void MarlinSettings::postprocess() {
//
// LCD Preheat settings
//
#if PREHEAT_COUNT
#if HAS_PREHEAT
_FIELD_TEST(ui_material_preset);
EEPROM_READ(ui.material_preset);
#endif
@@ -2796,7 +2796,7 @@ void MarlinSettings::reset() {
//
// Preheat parameters
//
#if PREHEAT_COUNT
#if HAS_PREHEAT
#define _PITEM(N,T) PREHEAT_##N##_##T,
#if HAS_HOTEND
constexpr uint16_t hpre[] = { REPEAT2_S(1, INCREMENT(PREHEAT_COUNT), _PITEM, TEMP_HOTEND) };
@@ -3181,7 +3181,7 @@ void MarlinSettings::reset() {
//
// LCD Preheat Settings
//
#if PREHEAT_COUNT
#if HAS_PREHEAT
gcode.M145_report(forReplay);
#endif