mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 22:08:02 +00:00
Always synchronize in Stepper::set_position
This commit is contained in:
parent
c6142aa2a1
commit
7dec8071b2
@ -936,6 +936,9 @@ void Stepper::synchronize() { while (planner.blocks_queued()) idle(); }
|
||||
* derive the current XYZ position later on.
|
||||
*/
|
||||
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;
|
||||
|
||||
#if ENABLED(COREXY)
|
||||
|
Loading…
Reference in New Issue
Block a user