[1.1.x] M303 thermal runaway protection (#8209)
* Added M303 thermal runaway protection Currently, thermal runaway protection is not available during M303. Therefore, if someone plugs the thermistors in incorrectly and goes to autotune their printer, the printer temperature could runaway and damage could occur. * Replace removed line, clarifying its logic
This commit is contained in:
parent
87d3a1ae4d
commit
39cc36d3f1
2 changed files with 61 additions and 19 deletions
|
|
@ -437,7 +437,7 @@ class Temperature {
|
|||
* Perform auto-tuning for hotend or bed in response to M303
|
||||
*/
|
||||
#if HAS_PID_HEATING
|
||||
static void PID_autotune(float temp, int hotend, int ncycles, bool set_result=false);
|
||||
static void PID_autotune(const float temp, const int8_t hotend, const int8_t ncycles, const bool set_result=false);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue