Skip to content

Commit

Permalink
[2.0.x] Limit PID autotune target to maxtemp-15 (#12691)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoravcik authored and thinkyhead committed Dec 20, 2018
1 parent 8dcc28c commit 4dad489
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Marlin/src/module/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4dad489

Please sign in to comment.