Rowan Meara 9850ba0cbd [1.1.x] Fix M303 thermal protection #8103 (#8126)
* Fixed M303 thermal protection

The temperature sanity checking logic was not being applied during M303
(pid autotuning) because instead of setting a target temperature, it
directly manipulated the pwm values.  When PIDTEMP/PIDTEMPBED is
enabled, PWM values rather than the target temperature determine whether
the heater is on.  I changed this to look directly at the PWM amount
when pid is enabled.

* Turn off heaters on M303 error

Currently, PID autotuning stops if it overshoots the temperature by 20C
or if if the temperature does not change for 20 minutes and it times
out.  I added calls to disable the heaters in these scenarios.

* Removed unnecessary if statement.

Added changes suggested by GMagician.

* Update temperature.cpp

* Update temperature.cpp

* Update temperature.cpp
2017-10-29 04:34:47 -05:00
..
2017-05-09 12:37:23 -05:00
2017-10-27 02:13:41 -05:00
2017-06-07 16:07:38 -05:00
2017-10-27 00:02:35 -05:00
2017-06-09 20:21:28 -07:00
2017-06-09 20:21:28 -07:00
2017-04-21 21:42:41 -05:00
2017-02-11 12:01:34 -06:00
2017-07-06 21:47:50 -05:00
2017-06-15 14:43:40 -05:00
2017-07-06 14:21:27 -05:00
2017-10-18 14:19:01 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-09-23 22:06:45 -05:00
2017-10-29 00:22:55 +02:00
2017-10-14 15:58:07 -05:00
2017-10-06 15:11:27 -05:00
2017-08-14 22:50:44 -05:00
2017-06-12 01:09:24 -05:00
2017-05-17 04:23:06 -05:00
2017-05-17 04:23:06 -05:00
2017-05-17 04:23:06 -05:00
2017-05-17 04:23:06 -05:00
2017-05-17 04:23:06 -05:00
2017-08-23 18:32:59 -05:00
2017-05-17 04:23:06 -05:00
2017-05-17 04:23:06 -05:00
2017-05-17 04:23:06 -05:00
2017-05-17 04:23:06 -05:00
2017-05-17 04:23:06 -05:00
2017-05-17 04:23:06 -05:00
2017-10-27 02:13:41 -05:00
2017-05-17 04:23:06 -05:00
2017-05-17 04:23:06 -05:00
2017-05-17 04:23:06 -05:00
2017-10-09 17:39:03 -05:00
2017-05-17 04:23:06 -05:00
2017-05-21 07:18:03 -05:00
2017-09-27 03:01:09 -05:00
2017-06-09 18:48:12 -05:00
2017-06-15 15:25:24 -05:00
2017-06-09 18:48:12 -05:00
2017-10-27 02:13:41 -05:00
2017-06-24 19:07:03 -05:00
2017-06-09 17:17:23 -05:00
2017-04-26 06:24:23 -05:00
2017-08-14 22:51:47 -05:00
2017-08-14 22:50:44 -05:00
2017-08-14 22:50:44 -05:00
2017-08-14 22:50:44 -05:00
2017-08-14 22:51:47 -05:00
2017-08-14 22:50:44 -05:00
2017-09-24 16:52:41 -05:00
2017-08-15 00:28:47 -05:00
2017-04-11 09:18:32 -05:00
2017-08-14 22:50:44 -05:00
2017-05-22 17:38:58 -05:00
2017-06-19 17:46:41 -05:00
2017-06-19 17:46:41 -05:00
2017-10-09 04:27:45 -05:00
2017-10-09 04:27:45 -05:00
2017-04-08 18:58:33 -05:00
2017-05-09 12:37:23 -05:00
2017-06-24 19:07:03 -05:00
2016-12-19 14:47:54 -08:00
2016-12-19 14:47:54 -08:00
2016-12-19 14:47:54 -08:00
2016-12-19 14:47:54 -08:00
2016-12-19 14:47:54 -08:00
2016-12-19 14:47:54 -08:00
2016-12-19 14:47:54 -08:00
2016-12-19 14:47:54 -08:00
2016-12-19 14:47:54 -08:00
2017-05-21 22:09:51 -05:00
2017-06-09 17:17:23 -05:00
2017-07-01 22:32:20 -05:00
2017-10-24 16:49:00 -05:00
2017-10-24 16:49:00 -05:00
2017-10-15 02:21:09 -05:00
2017-10-06 15:11:27 -05:00
2017-06-19 17:46:41 -05:00
2017-07-07 05:00:59 -05:00
2017-05-28 11:33:22 -05:00
2017-06-09 17:17:23 -05:00