[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:
Rowan Meara 2017-11-03 01:16:39 -07:00 committed by Scott Lahteine
parent 87d3a1ae4d
commit 39cc36d3f1
2 changed files with 61 additions and 19 deletions

View file

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