Browse Source

Shut down autotemp in disable_all_heaters

Scott Lahteine 7 years ago
parent
commit
6854f08d22
4 changed files with 8 additions and 17 deletions
  1. 1
    1
      .travis.yml
  2. 0
    4
      Marlin/Marlin_main.cpp
  3. 7
    1
      Marlin/temperature.cpp
  4. 0
    11
      Marlin/temperature.h

+ 1
- 1
.travis.yml View File

@@ -141,7 +141,7 @@ script:
141 141
   - restore_configs
142 142
   - opt_enable NUM_SERVOS Z_ENDSTOP_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE
143 143
   - opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS EEPROM_CHITCHAT
144
-  - opt_enable_adv EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES
144
+  - opt_enable_adv EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES AUTOTEMP
145 145
   - build_marlin
146 146
   #
147 147
   # Test MESH_BED_LEVELING feature, with LCD

+ 0
- 4
Marlin/Marlin_main.cpp View File

@@ -5762,10 +5762,6 @@ inline void gcode_M31() {
5762 5762
 
5763 5763
   SERIAL_ECHO_START;
5764 5764
   SERIAL_ECHOLNPAIR("Print time: ", buffer);
5765
-
5766
-  #if ENABLED(AUTOTEMP)
5767
-    thermalManager.autotempShutdown();
5768
-  #endif
5769 5765
 }
5770 5766
 
5771 5767
 #if ENABLED(SDSUPPORT)

+ 7
- 1
Marlin/temperature.cpp View File

@@ -25,9 +25,10 @@
25 25
  */
26 26
 
27 27
 #include "Marlin.h"
28
-#include "ultralcd.h"
29 28
 #include "temperature.h"
30 29
 #include "thermistortables.h"
30
+#include "ultralcd.h"
31
+#include "planner.h"
31 32
 #include "language.h"
32 33
 
33 34
 #if ENABLED(HEATER_0_USES_MAX6675)
@@ -1288,6 +1289,11 @@ void Temperature::init() {
1288 1289
 #endif // THERMAL_PROTECTION_HOTENDS || THERMAL_PROTECTION_BED
1289 1290
 
1290 1291
 void Temperature::disable_all_heaters() {
1292
+
1293
+  #if ENABLED(AUTOTEMP)
1294
+    planner.autotemp_enabled = false;
1295
+  #endif
1296
+
1291 1297
   HOTEND_LOOP() setTargetHotend(0, e);
1292 1298
   setTargetBed(0);
1293 1299
 

+ 0
- 11
Marlin/temperature.h View File

@@ -27,7 +27,6 @@
27 27
 #ifndef TEMPERATURE_H
28 28
 #define TEMPERATURE_H
29 29
 
30
-#include "planner.h"
31 30
 #include "thermistortables.h"
32 31
 
33 32
 #include "MarlinConfig.h"
@@ -418,16 +417,6 @@ class Temperature {
418 417
      */
419 418
     static void updatePID();
420 419
 
421
-    #if ENABLED(AUTOTEMP)
422
-      static void autotempShutdown() {
423
-        if (planner.autotemp_enabled) {
424
-          planner.autotemp_enabled = false;
425
-          if (degTargetHotend(EXTRUDER_IDX) > planner.autotemp_min)
426
-            setTargetHotend(0, EXTRUDER_IDX);
427
-        }
428
-      }
429
-    #endif
430
-
431 420
     #if ENABLED(BABYSTEPPING)
432 421
 
433 422
       static void babystep_axis(const AxisEnum axis, const int distance) {

Loading…
Cancel
Save