Fix G26 Circle Drawing. Add Default Extrusion Settings (#8313)
- Fix G26 Circle Drawing. - Add default extrusion settings so machine can print lines on print bed - Yet to be done: Get LCD Menu's to use these settings.
This commit is contained in:
@ -638,25 +638,30 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS },
|
||||
*
|
||||
* Returns true if current_position[] was set to destination[]
|
||||
*/
|
||||
|
||||
inline bool prepare_move_to_destination_cartesian() {
|
||||
if (current_position[X_AXIS] != destination[X_AXIS] || current_position[Y_AXIS] != destination[Y_AXIS]) {
|
||||
const float fr_scaled = MMS_SCALED(feedrate_mm_s);
|
||||
const float fr_scaled = MMS_SCALED(feedrate_mm_s);
|
||||
#if HAS_MESH
|
||||
if (planner.leveling_active) {
|
||||
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
||||
ubl.line_to_destination_cartesian(fr_scaled, active_extruder);
|
||||
#elif ENABLED(MESH_BED_LEVELING)
|
||||
mesh_line_to_destination(fr_scaled);
|
||||
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
||||
bilinear_line_to_destination(fr_scaled);
|
||||
#endif
|
||||
return true;
|
||||
if (!planner.leveling_active) {
|
||||
line_to_destination(fr_scaled);
|
||||
return false;
|
||||
}
|
||||
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
||||
ubl.line_to_destination_cartesian(fr_scaled, active_extruder); // UBL's motion routine needs to know about all moves,
|
||||
return true; // even purely Z-Axis moves
|
||||
#else
|
||||
if (current_position[X_AXIS] != destination[X_AXIS] || current_position[Y_AXIS] != destination[Y_AXIS]) {
|
||||
#if ENABLED(MESH_BED_LEVELING)
|
||||
mesh_line_to_destination(fr_scaled);
|
||||
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
||||
bilinear_line_to_destination(fr_scaled);
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
else
|
||||
line_to_destination();
|
||||
#endif
|
||||
#endif // HAS_MESH
|
||||
line_to_destination(fr_scaled);
|
||||
}
|
||||
else
|
||||
line_to_destination();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user