|
@ -91,6 +91,10 @@ |
|
|
#include "../feature/power.h" |
|
|
#include "../feature/power.h" |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER) |
|
|
|
|
|
#include "../feature/closedloop.h" |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(BACKLASH_COMPENSATION) |
|
|
#if ENABLED(BACKLASH_COMPENSATION) |
|
|
#include "../feature/backlash.h" |
|
|
#include "../feature/backlash.h" |
|
|
#endif |
|
|
#endif |
|
@ -1634,11 +1638,8 @@ float Planner::get_axis_position_mm(const AxisEnum axis) { |
|
|
* Block until all buffered steps are executed / cleaned |
|
|
* Block until all buffered steps are executed / cleaned |
|
|
*/ |
|
|
*/ |
|
|
void Planner::synchronize() { |
|
|
void Planner::synchronize() { |
|
|
while ( |
|
|
while (has_blocks_queued() || cleaning_buffer_counter |
|
|
has_blocks_queued() || cleaning_buffer_counter |
|
|
|| TERN0(EXTERNAL_CLOSED_LOOP_CONTROLLER, CLOSED_LOOP_WAITING()) |
|
|
#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER) |
|
|
|
|
|
|| (READ(CLOSED_LOOP_ENABLE_PIN) && !READ(CLOSED_LOOP_MOVE_COMPLETE_PIN)) |
|
|
|
|
|
#endif |
|
|
|
|
|
) idle(); |
|
|
) idle(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|