Skip to content
Snippets Groups Projects
Commit cad248fc authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Merge pull request #2111 from AnHardt/at

Name magic value 20 to MAX_OVERSHOOT_PID_AUTOTUNE
parents 7ff18f66 97ca1b3f
No related branches found
No related tags found
No related merge requests found
......@@ -312,7 +312,8 @@ void PID_autotune(float temp, int extruder, int ncycles)
}
}
}
if (input > temp + 20) {
#define MAX_OVERSHOOT_PID_AUTOTUNE 20
if (input > temp + MAX_OVERSHOOT_PID_AUTOTUNE) {
SERIAL_PROTOCOLLNPGM(MSG_PID_TEMP_TOO_HIGH);
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment