Browse Source

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

pull/1/head
Roman Moravčík 6 years ago
committed by Scott Lahteine
parent
commit
4dad489a50
  1. 5
      Marlin/src/module/temperature.cpp

5
Marlin/src/module/temperature.cpp

@ -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