瀏覽代碼

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

midopple 12 年之前
父節點
當前提交
a65a26d6b4
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8
    0
      Marlin/planner.cpp

+ 8
- 0
Marlin/planner.cpp 查看文件

@@ -582,8 +582,16 @@ void plan_buffer_line(const float &x, const float &y, const float &z, const floa
582 582
   block->active_extruder = extruder;
583 583
 
584 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 592
   if(block->steps_x != 0) enable_x();
586 593
   if(block->steps_y != 0) enable_y();
594
+  #endif
587 595
 #ifndef Z_LATE_ENABLE
588 596
   if(block->steps_z != 0) enable_z();
589 597
 #endif

Loading…
取消
儲存