Comment `return false` in motion functions

master
Scott Lahteine 7 years ago
parent 1bb5791e64
commit fb6b62a01b

@ -13027,7 +13027,6 @@ void set_current_from_steppers_for_axis(const AxisEnum axis) {
}
else {
// Must already have been split on these border(s)
// This should be a rare case.
buffer_line_to_destination(fr_mm_s);
set_current_from_destination();
return;
@ -13096,7 +13095,6 @@ void set_current_from_steppers_for_axis(const AxisEnum axis) {
}
else {
// Must already have been split on these border(s)
// This should be a rare case.
buffer_line_to_destination(fr_mm_s);
set_current_from_destination();
return;
@ -13139,7 +13137,7 @@ void set_current_from_steppers_for_axis(const AxisEnum axis) {
// If the move is only in Z/E don't split up the move
if (!xdiff && !ydiff) {
planner.buffer_line_kinematic(rtarget, _feedrate_mm_s, active_extruder);
return false;
return false; // caller will update current_position
}
// Fail if attempting move outside printable radius
@ -13236,7 +13234,7 @@ void set_current_from_steppers_for_axis(const AxisEnum axis) {
planner.buffer_line_kinematic(rtarget, _feedrate_mm_s, active_extruder);
#endif
return false;
return false; // caller will update current_position
}
#else // !IS_KINEMATIC
@ -13257,7 +13255,7 @@ void set_current_from_steppers_for_axis(const AxisEnum axis) {
return true; // all moves, including Z-only moves.
#elif ENABLED(SEGMENT_LEVELED_MOVES)
segmented_line_to_destination(MMS_SCALED(feedrate_mm_s));
return false;
return false; // caller will update current_position
#else
/**
* For MBL and ABL-BILINEAR only segment moves when X or Y are involved.
@ -13276,7 +13274,7 @@ void set_current_from_steppers_for_axis(const AxisEnum axis) {
#endif // HAS_MESH
buffer_line_to_destination(MMS_SCALED(feedrate_mm_s));
return false;
return false; // caller will update current_position
}
#endif // !IS_KINEMATIC

@ -616,6 +616,8 @@
} // segment loop
} // cell loop
return false; // caller will update current_position
}
#endif // UBL_SEGMENTED

Loading…
Cancel
Save