Add HOTEND_OVERSHOOT

This commit is contained in:
Scott Lahteine
2020-04-27 04:48:11 -05:00
parent 8b3c7dda75
commit 33217b0dd0
12 changed files with 23 additions and 20 deletions

View File

@ -946,7 +946,7 @@ namespace ExtUI {
{
#if HAS_HOTEND
const int16_t e = heater - H0;
thermalManager.setTargetHotend(LROUND(constrain(value, 0, heater_maxtemp[e] - 15)), e);
thermalManager.setTargetHotend(LROUND(constrain(value, 0, heater_maxtemp[e] - HOTEND_OVERSHOOT)), e);
#endif
}
}
@ -958,7 +958,7 @@ namespace ExtUI {
#if HAS_HOTEND
const int16_t e = extruder - E0;
enableHeater(extruder);
thermalManager.setTargetHotend(LROUND(constrain(value, 0, heater_maxtemp[e] - 15)), e);
thermalManager.setTargetHotend(LROUND(constrain(value, 0, heater_maxtemp[e] - HOTEND_OVERSHOOT)), e);
#endif
}