Bläddra i källkod

Always synchronize in Stepper::set_position

Scott Lahteine 8 år sedan
förälder
incheckning
7dec8071b2
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3
    0
      Marlin/stepper.cpp

+ 3
- 0
Marlin/stepper.cpp Visa fil

@@ -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)

Laddar…
Avbryt
Spara