Bläddra i källkod

If CORE_XY is in use X and Y Axis had to be activated at the same time

midopple 12 år sedan
förälder
incheckning
a65a26d6b4
1 ändrade filer med 8 tillägg och 0 borttagningar
  1. 8
    0
      Marlin/planner.cpp

+ 8
- 0
Marlin/planner.cpp Visa fil

582
   block->active_extruder = extruder;
582
   block->active_extruder = extruder;
583
 
583
 
584
   //enable active axes
584
   //enable active axes
585
+  #ifdef COREXY
586
+  if((block->steps_x != 0) || (block->steps_y != 0))
587
+  {
588
+    enable_x();
589
+    enable_y();
590
+  }
591
+  #else
585
   if(block->steps_x != 0) enable_x();
592
   if(block->steps_x != 0) enable_x();
586
   if(block->steps_y != 0) enable_y();
593
   if(block->steps_y != 0) enable_y();
594
+  #endif
587
 #ifndef Z_LATE_ENABLE
595
 #ifndef Z_LATE_ENABLE
588
   if(block->steps_z != 0) enable_z();
596
   if(block->steps_z != 0) enable_z();
589
 #endif
597
 #endif

Laddar…
Avbryt
Spara