mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-29 23:07:42 +00:00
[1.1.x] Limit PID autotune target to maxtemp-15 (#12703)
This commit is contained in:
parent
ff1362c71d
commit
986c4390f0
@ -308,6 +308,11 @@ uint8_t Temperature::soft_pwm_amount[HOTENDS];
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (target > GHV(BED_MAXTEMP, maxttemp[hotend]) - 15) {
|
||||||
|
SERIAL_ECHOLNPGM(MSG_PID_TEMP_TOO_HIGH);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
SERIAL_ECHOLNPGM(MSG_PID_AUTOTUNE_START);
|
SERIAL_ECHOLNPGM(MSG_PID_AUTOTUNE_START);
|
||||||
|
|
||||||
disable_all_heaters(); // switch off all heaters.
|
disable_all_heaters(); // switch off all heaters.
|
||||||
|
Loading…
Reference in New Issue
Block a user