[2.0.x] Limit PID autotune target to maxtemp-15 (#12691)

2.0.x
Roman Moravčík 6 years ago committed by Scott Lahteine
parent 8dcc28c9ae
commit 4dad489a50

@ -286,6 +286,11 @@ uint8_t Temperature::soft_pwm_amount[HOTENDS];
next_auto_fan_check_ms = next_temp_ms + 2500UL;
#endif
if (target > GHV(BED_MAXTEMP, maxttemp[heater]) - 15)) {
SERIAL_ECHOLNPGM(MSG_PID_TEMP_TOO_HIGH);
return;
}
SERIAL_ECHOLNPGM(MSG_PID_AUTOTUNE_START);
disable_all_heaters();

Loading…
Cancel
Save