Browse Source

Respect DISABLE_AXIS settings (PR#2216)

when DEFAULT_STEPPER_DEACTIVE_TIME is over
instead of simply turn off all.
AnHardt 9 years ago
parent
commit
45642b7fe8
1 changed files with 17 additions and 2 deletions
  1. 17
    2
      Marlin/Marlin_main.cpp

+ 17
- 2
Marlin/Marlin_main.cpp View File

@@ -6344,8 +6344,23 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
6344 6344
   if (max_inactive_time && ms > previous_cmd_ms + max_inactive_time) kill(PSTR(MSG_KILLED));
6345 6345
 
6346 6346
   if (stepper_inactive_time && ms > previous_cmd_ms + stepper_inactive_time
6347
-      && !ignore_stepper_queue && !blocks_queued())
6348
-    disable_all_steppers();
6347
+      && !ignore_stepper_queue && !blocks_queued()) {
6348
+    #if DISABLE_X == true
6349
+      disable_x();
6350
+    #endif
6351
+    #if DISABLE_Y == true
6352
+      disable_y();
6353
+    #endif
6354
+    #if DISABLE_Z == true
6355
+      disable_z();
6356
+    #endif
6357
+    #if DISABLE_E == true
6358
+      disable_e0();
6359
+      disable_e1();
6360
+      disable_e2();
6361
+      disable_e3();
6362
+    #endif
6363
+  }
6349 6364
 
6350 6365
   #ifdef CHDK // Check if pin should be set to LOW after M240 set it to HIGH
6351 6366
     if (chdkActive && ms > chdkHigh + CHDK_DELAY) {

Loading…
Cancel
Save