Add multi-extruder condition
This commit is contained in:
@@ -61,7 +61,7 @@ static void event_handler(lv_obj_t * obj, lv_event_t event) {
|
||||
thermalManager.start_watching_hotend(uiCfg.curSprayerChoose);
|
||||
}
|
||||
}
|
||||
#if !defined(SINGLENOZZLE) && EXTRUDERS >= 2
|
||||
#if !defined(SINGLENOZZLE) && HAS_MULTI_EXTRUDER
|
||||
else if ((int)thermalManager.temp_hotend[uiCfg.curSprayerChoose].target > (HEATER_1_MAXTEMP - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1))) {
|
||||
thermalManager.temp_hotend[uiCfg.curSprayerChoose].target = (float)HEATER_1_MAXTEMP - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1);
|
||||
thermalManager.start_watching_hotend(uiCfg.curSprayerChoose);
|
||||
@@ -117,7 +117,7 @@ static void event_handler(lv_obj_t * obj, lv_event_t event) {
|
||||
}
|
||||
else if (event == LV_EVENT_RELEASED) {
|
||||
if (uiCfg.curTempType == 0) {
|
||||
if (EXTRUDERS == 2) {
|
||||
if (ENABLED(HAS_MULTI_EXTRUDER)) {
|
||||
if (uiCfg.curSprayerChoose == 0) {
|
||||
uiCfg.curSprayerChoose = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user