Browse Source

Always synchronize in Stepper::set_position

Scott Lahteine 8 years ago
parent
commit
7dec8071b2
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      Marlin/stepper.cpp

+ 3
- 0
Marlin/stepper.cpp View File

@@ -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…
Cancel
Save