🎨 Define HAS_PREHEAT conditional
This commit is contained in:
committed by
Scott Lahteine
parent
1fd4258423
commit
84f9490149
@ -520,7 +520,7 @@ void GcodeSuite::G26() {
|
||||
g26.keep_heaters_on = parser.boolval('K');
|
||||
|
||||
// Accept 'I' if temperature presets are defined
|
||||
#if PREHEAT_COUNT
|
||||
#if HAS_PREHEAT
|
||||
const uint8_t preset_index = parser.seenval('I') ? _MIN(parser.value_byte(), PREHEAT_COUNT - 1) + 1 : 0;
|
||||
#endif
|
||||
|
||||
@ -530,7 +530,7 @@ void GcodeSuite::G26() {
|
||||
celsius_t bedtemp = 0;
|
||||
|
||||
// Use the 'I' index if temperature presets are defined
|
||||
#if PREHEAT_COUNT
|
||||
#if HAS_PREHEAT
|
||||
if (preset_index) bedtemp = ui.material_preset[preset_index - 1].bed_temp;
|
||||
#endif
|
||||
|
||||
@ -613,7 +613,7 @@ void GcodeSuite::G26() {
|
||||
celsius_t noztemp = 0;
|
||||
|
||||
// Accept 'I' if temperature presets are defined
|
||||
#if PREHEAT_COUNT
|
||||
#if HAS_PREHEAT
|
||||
if (preset_index) noztemp = ui.material_preset[preset_index - 1].hotend_temp;
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user