瀏覽代碼

Always synchronize in Stepper::set_position

Scott Lahteine 8 年之前
父節點
當前提交
7dec8071b2
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      Marlin/stepper.cpp

+ 3
- 0
Marlin/stepper.cpp 查看文件

@@ -936,6 +936,9 @@ void Stepper::synchronize() { while (planner.blocks_queued()) idle(); }
936 936
  * derive the current XYZ position later on.
937 937
  */
938 938
 void Stepper::set_position(const long& x, const long& y, const long& z, const long& e) {
939
+
940
+  synchronize(); // Bad to set stepper counts in the middle of a move
941
+
939 942
   CRITICAL_SECTION_START;
940 943
 
941 944
   #if ENABLED(COREXY)

Loading…
取消
儲存