Apply LIMIT macro
This commit is contained in:
parent
9817976375
commit
ed0e6afacb
14 changed files with 31 additions and 34 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue