Correct some retract() comments

This commit is contained in:
Scott Lahteine 2018-02-08 17:57:48 -06:00 committed by GitHub
parent 1541224a81
commit b639f1ad4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,10 +153,10 @@ void FWRetract::retract(const bool retracting
else { else {
// If a hop was done and Z hasn't changed, undo the Z hop // If a hop was done and Z hasn't changed, undo the Z hop
if (hop_amount) { if (hop_amount) {
current_position[Z_AXIS] += retract_zlift; // Pretend current pos is lower. Next move raises Z. current_position[Z_AXIS] += retract_zlift; // Pretend current pos is higher. Next move lowers Z.
SYNC_PLAN_POSITION_KINEMATIC(); // Set the planner to the new position SYNC_PLAN_POSITION_KINEMATIC(); // Set the planner to the new position
feedrate_mm_s = planner.max_feedrate_mm_s[Z_AXIS]; // Z feedrate to max feedrate_mm_s = planner.max_feedrate_mm_s[Z_AXIS]; // Z feedrate to max
prepare_move_to_destination(); // Raise up to the old current pos prepare_move_to_destination(); // Lower down to the old current pos
hop_amount = 0.0; // Clear hop hop_amount = 0.0; // Clear hop
} }