Shut down autotemp in disable_all_heaters

This commit is contained in:
Scott Lahteine
2017-05-03 20:43:00 -05:00
parent acec237092
commit 6854f08d22
4 changed files with 8 additions and 17 deletions

View File

@ -25,9 +25,10 @@
*/
#include "Marlin.h"
#include "ultralcd.h"
#include "temperature.h"
#include "thermistortables.h"
#include "ultralcd.h"
#include "planner.h"
#include "language.h"
#if ENABLED(HEATER_0_USES_MAX6675)
@ -1288,6 +1289,11 @@ void Temperature::init() {
#endif // THERMAL_PROTECTION_HOTENDS || THERMAL_PROTECTION_BED
void Temperature::disable_all_heaters() {
#if ENABLED(AUTOTEMP)
planner.autotemp_enabled = false;
#endif
HOTEND_LOOP() setTargetHotend(0, e);
setTargetBed(0);