|
@@ -11235,32 +11235,36 @@ void set_current_from_steppers_for_axis(const AxisEnum axis) {
|
11235
|
11235
|
* Returns true if the caller didn't update current_position.
|
11236
|
11236
|
*/
|
11237
|
11237
|
inline bool prepare_move_to_destination_cartesian() {
|
11238
|
|
- // Do not use feedrate_percentage for E or Z only moves
|
11239
|
|
- if (current_position[X_AXIS] == destination[X_AXIS] && current_position[Y_AXIS] == destination[Y_AXIS]) {
|
11240
|
|
- line_to_destination();
|
11241
|
|
- }
|
11242
|
|
- else {
|
11243
|
|
- #if ENABLED(MESH_BED_LEVELING)
|
11244
|
|
- if (mbl.active()) {
|
11245
|
|
- mesh_line_to_destination(MMS_SCALED(feedrate_mm_s));
|
11246
|
|
- return true;
|
11247
|
|
- }
|
11248
|
|
- else
|
11249
|
|
- #elif ENABLED(AUTO_BED_LEVELING_UBL)
|
11250
|
|
- if (ubl.state.active) {
|
11251
|
|
- ubl_line_to_destination_cartesian(MMS_SCALED(feedrate_mm_s), active_extruder);
|
11252
|
|
- return true;
|
11253
|
|
- }
|
11254
|
|
- else
|
11255
|
|
- #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
11256
|
|
- if (planner.abl_enabled) {
|
11257
|
|
- bilinear_line_to_destination(MMS_SCALED(feedrate_mm_s));
|
11258
|
|
- return true;
|
11259
|
|
- }
|
11260
|
|
- else
|
11261
|
|
- #endif
|
11262
|
|
- line_to_destination(MMS_SCALED(feedrate_mm_s));
|
11263
|
|
- }
|
|
11238
|
+ #if ENABLED(AUTO_BED_LEVELING_UBL)
|
|
11239
|
+ const float fr_scaled = MMS_SCALED(feedrate_mm_s);
|
|
11240
|
+ if (ubl.state.active) {
|
|
11241
|
+ ubl_line_to_destination_cartesian(fr_scaled, active_extruder);
|
|
11242
|
+ return true;
|
|
11243
|
+ }
|
|
11244
|
+ else
|
|
11245
|
+ line_to_destination(fr_scaled);
|
|
11246
|
+ #else
|
|
11247
|
+ // Do not use feedrate_percentage for E or Z only moves
|
|
11248
|
+ if (current_position[X_AXIS] == destination[X_AXIS] && current_position[Y_AXIS] == destination[Y_AXIS])
|
|
11249
|
+ line_to_destination();
|
|
11250
|
+ else {
|
|
11251
|
+ const float fr_scaled = MMS_SCALED(feedrate_mm_s);
|
|
11252
|
+ #if ENABLED(MESH_BED_LEVELING)
|
|
11253
|
+ if (mbl.active()) {
|
|
11254
|
+ mesh_line_to_destination(fr_scaled);
|
|
11255
|
+ return true;
|
|
11256
|
+ }
|
|
11257
|
+ else
|
|
11258
|
+ #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
|
11259
|
+ if (planner.abl_enabled) {
|
|
11260
|
+ bilinear_line_to_destination(fr_scaled);
|
|
11261
|
+ return true;
|
|
11262
|
+ }
|
|
11263
|
+ else
|
|
11264
|
+ #endif
|
|
11265
|
+ line_to_destination(fr_scaled);
|
|
11266
|
+ }
|
|
11267
|
+ #endif
|
11264
|
11268
|
return false;
|
11265
|
11269
|
}
|
11266
|
11270
|
|