Browse Source

Always synchronize in Stepper::set_position

pull/1/head
Scott Lahteine 8 years ago
parent
commit
7dec8071b2
  1. 3
      Marlin/stepper.cpp

3
Marlin/stepper.cpp

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

Loading…
Cancel
Save