Browse Source

Always synchronize in Stepper::set_position

Scott Lahteine 9 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
  * derive the current XYZ position later on.
936
  * derive the current XYZ position later on.
937
  */
937
  */
938
 void Stepper::set_position(const long& x, const long& y, const long& z, const long& e) {
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
   CRITICAL_SECTION_START;
942
   CRITICAL_SECTION_START;
940
 
943
 
941
   #if ENABLED(COREXY)
944
   #if ENABLED(COREXY)

Loading…
Cancel
Save