Add external closed loop controller support

This commit is contained in:
Sam Lane
2018-09-08 18:08:31 +01:00
committed by Scott Lahteine
parent 2ebfe90be9
commit 1b6bc19427
9 changed files with 139 additions and 1 deletions

View File

@ -1539,7 +1539,14 @@ float Planner::get_axis_position_mm(const AxisEnum axis) {
/**
* Block until all buffered steps are executed / cleaned
*/
void Planner::synchronize() { while (has_blocks_queued() || cleaning_buffer_counter) idle(); }
void Planner::synchronize() {
while (
has_blocks_queued() || cleaning_buffer_counter
#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
|| !READ(CLOSED_LOOP_MOVE_COMPLETE_PIN)
#endif
) idle();
}
/**
* Planner::_buffer_steps