Improve max temp / target
This commit is contained in:
committed by
Scott Lahteine
parent
df1ef496d1
commit
cfa6c7d45b
@ -924,7 +924,7 @@ namespace ExtUI {
|
||||
enableHeater(heater);
|
||||
switch (heater) {
|
||||
#if HAS_HEATED_CHAMBER
|
||||
case CHAMBER: thermalManager.setTargetChamber(LROUND(constrain(value, 0, CHAMBER_MAXTEMP - 10))); break;
|
||||
case CHAMBER: thermalManager.setTargetChamber(LROUND(constrain(value, 0, CHAMBER_MAX_TARGET))); break;
|
||||
#endif
|
||||
#if HAS_COOLER
|
||||
case COOLER: thermalManager.setTargetCooler(LROUND(constrain(value, 0, COOLER_MAXTEMP))); break;
|
||||
@ -935,7 +935,7 @@ namespace ExtUI {
|
||||
default: {
|
||||
#if HAS_HOTEND
|
||||
const int16_t e = heater - H0;
|
||||
thermalManager.setTargetHotend(LROUND(constrain(value, 0, thermalManager.heater_maxtemp[e] - HOTEND_OVERSHOOT)), e);
|
||||
thermalManager.setTargetHotend(LROUND(constrain(value, 0, thermalManager.hotend_max_target(e))), e);
|
||||
#endif
|
||||
} break;
|
||||
}
|
||||
@ -949,7 +949,7 @@ namespace ExtUI {
|
||||
#if HAS_HOTEND
|
||||
const int16_t e = extruder - E0;
|
||||
enableHeater(extruder);
|
||||
thermalManager.setTargetHotend(LROUND(constrain(value, 0, thermalManager.heater_maxtemp[e] - HOTEND_OVERSHOOT)), e);
|
||||
thermalManager.setTargetHotend(LROUND(constrain(value, 0, thermalManager.hotend_max_target(e))), e);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user