* 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
|
|
||
269 |
|
269 |
|
270 |
|
270 |
|
271 |
|
271 |
|
272 |
|
|
|
|
272 |
|
|
273 |
|
273 |
|
274 |
|
274 |
|
275 |
|
275 |
|
|
|
||
384 |
|
384 |
|
385 |
|
385 |
|
386 |
|
386 |
|
387 |
|
|
|
|
387 |
|
|
388 |
|
388 |
|
389 |
|
389 |
|
390 |
|
|
|
|
390 |
|
|
391 |
|
391 |
|
392 |
|
392 |
|
393 |
|
393 |
|
394 |
|
394 |
|
395 |
|
395 |
|
396 |
|
|
|
|
396 |
|
|
397 |
|
397 |
|
398 |
|
|
|
399 |
|
|
|
|
398 |
|
|
|
399 |
|
|
400 |
|
400 |
|
401 |
|
|
|
|
401 |
|
|
402 |
|
402 |
|
403 |
|
403 |
|
404 |
|
404 |
|
|
|
||
447 |
|
447 |
|
448 |
|
448 |
|
449 |
|
449 |
|
450 |
|
|
|
|
450 |
|
|
451 |
|
451 |
|
452 |
|
452 |
|
453 |
|
453 |
|
|
|
||
2067 |
|
2067 |
|
2068 |
|
2068 |
|
2069 |
|
2069 |
|
2070 |
|
|
|
2071 |
|
|
|
|
2070 |
|
|
|
2071 |
|
|
|
2072 |
|
|
|
2073 |
|
|
|
2074 |
|
|
|
2075 |
|
|
|
2076 |
|
|
|
2077 |
|
|
|
2078 |
|
|
2072 |
|
2079 |
|
2073 |
|
2080 |
|
2074 |
|
2081 |
|
|
|
||
2086 |
|
2093 |
|
2087 |
|
2094 |
|
2088 |
|
2095 |
|
2089 |
|
|
|
2090 |
|
|
|
|
2096 |
|
|
|
2097 |
|
|
|
2098 |
|
|
|
2099 |
|
|
|
2100 |
|
|
|
2101 |
|
|
|
2102 |
|
|
|
2103 |
|
|
|
2104 |
|
|
2091 |
|
2105 |
|
2092 |
|
2106 |
|
2093 |
|
2107 |
|