Apply LIMIT macro
This commit is contained in:
@ -1157,7 +1157,7 @@ void Planner::recalculate() {
|
||||
}
|
||||
|
||||
float t = autotemp_min + high * autotemp_factor;
|
||||
t = constrain(t, autotemp_min, autotemp_max);
|
||||
LIMIT(t, autotemp_min, autotemp_max);
|
||||
if (t < oldt) t = t * (1 - float(AUTOTEMP_OLDWEIGHT)) + oldt * float(AUTOTEMP_OLDWEIGHT);
|
||||
oldt = t;
|
||||
thermalManager.setTargetHotend(t, 0);
|
||||
|
Reference in New Issue
Block a user