Move Stepper::synchronize to Planner (#10713)

Co-Authored-By: ejtagle <ejtagle@hotmail.com>
This commit is contained in:
Scott Lahteine
2018-05-12 01:38:02 -05:00
committed by GitHub
parent f2e3c9896e
commit 306f0f2135
33 changed files with 72 additions and 73 deletions

View File

@ -44,14 +44,14 @@ static bool G38_run_probe() {
}
#endif
stepper.synchronize(); // wait until the machine is idle
planner.synchronize(); // wait until the machine is idle
// Move until destination reached or target hit
endstops.enable(true);
G38_move = true;
G38_endstop_hit = false;
prepare_move_to_destination();
stepper.synchronize();
planner.synchronize();
G38_move = false;
endstops.hit_on_purpose();
@ -68,7 +68,7 @@ static bool G38_run_probe() {
LOOP_XYZ(i) destination[i] += retract_mm[i];
endstops.enable(false);
prepare_move_to_destination();
stepper.synchronize();
planner.synchronize();
feedrate_mm_s /= 4;
@ -78,7 +78,7 @@ static bool G38_run_probe() {
endstops.enable(true);
G38_move = true;
prepare_move_to_destination();
stepper.synchronize();
planner.synchronize();
G38_move = false;
set_current_from_steppers_for_axis(ALL_AXES);