Comment return false in motion functions

This commit is contained in:
Scott Lahteine 2017-12-24 22:56:23 -06:00
parent f218eb0ddf
commit 705ea98fd3
2 changed files with 6 additions and 4 deletions

View file

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

View file

@ -540,7 +540,7 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS },
// If the move is only in Z/E don't split up the move // If the move is only in Z/E don't split up the move
if (!xdiff && !ydiff) { if (!xdiff && !ydiff) {
planner.buffer_line_kinematic(rtarget, _feedrate_mm_s, active_extruder); 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 // Fail if attempting move outside printable radius
@ -638,7 +638,7 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS },
planner.buffer_line_kinematic(rtarget, _feedrate_mm_s, active_extruder); planner.buffer_line_kinematic(rtarget, _feedrate_mm_s, active_extruder);
#endif #endif
return false; return false; // caller will update current_position
} }
#else // !IS_KINEMATIC #else // !IS_KINEMATIC
@ -730,7 +730,7 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS },
return true; // all moves, including Z-only moves. return true; // all moves, including Z-only moves.
#elif ENABLED(SEGMENT_LEVELED_MOVES) #elif ENABLED(SEGMENT_LEVELED_MOVES)
segmented_line_to_destination(MMS_SCALED(feedrate_mm_s)); segmented_line_to_destination(MMS_SCALED(feedrate_mm_s));
return false; return false; // caller will update current_position
#else #else
/** /**
* For MBL and ABL-BILINEAR only segment moves when X or Y are involved. * For MBL and ABL-BILINEAR only segment moves when X or Y are involved.
@ -749,7 +749,7 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS },
#endif // HAS_MESH #endif // HAS_MESH
buffer_line_to_destination(MMS_SCALED(feedrate_mm_s)); buffer_line_to_destination(MMS_SCALED(feedrate_mm_s));
return false; return false; // caller will update current_position
} }
#endif // !IS_KINEMATIC #endif // !IS_KINEMATIC