|
@@ -2403,7 +2403,7 @@ static void clean_up_after_endstop_or_probe_move() {
|
2403
|
2403
|
|
2404
|
2404
|
#endif // HAS_BED_PROBE
|
2405
|
2405
|
|
2406
|
|
-#if PLANNER_LEVELING
|
|
2406
|
+#if HAS_LEVELING
|
2407
|
2407
|
/**
|
2408
|
2408
|
* Turn bed leveling on or off, fixing the current
|
2409
|
2409
|
* position as-needed.
|
|
@@ -2511,7 +2511,7 @@ static void clean_up_after_endstop_or_probe_move() {
|
2511
|
2511
|
#endif
|
2512
|
2512
|
}
|
2513
|
2513
|
|
2514
|
|
-#endif // PLANNER_LEVELING
|
|
2514
|
+#endif // HAS_LEVELING
|
2515
|
2515
|
|
2516
|
2516
|
#if ENABLED(AUTO_BED_LEVELING_BILINEAR) || ENABLED(MESH_BED_LEVELING)
|
2517
|
2517
|
|
|
@@ -3747,7 +3747,7 @@ inline void gcode_G28() {
|
3747
|
3747
|
#endif
|
3748
|
3748
|
|
3749
|
3749
|
// Disable the leveling matrix before homing
|
3750
|
|
- #if PLANNER_LEVELING
|
|
3750
|
+ #if HAS_LEVELING
|
3751
|
3751
|
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
3752
|
3752
|
const bool bed_leveling_state_at_entry = ubl.state.active;
|
3753
|
3753
|
#endif
|
|
@@ -4368,7 +4368,7 @@ void home_all_axes() { gcode_G28(); }
|
4368
|
4368
|
|
4369
|
4369
|
#endif
|
4370
|
4370
|
|
4371
|
|
- #if PLANNER_LEVELING
|
|
4371
|
+ #if HAS_LEVELING
|
4372
|
4372
|
|
4373
|
4373
|
// Jettison bed leveling data
|
4374
|
4374
|
if (code_seen('J')) {
|
|
@@ -5034,7 +5034,7 @@ void home_all_axes() { gcode_G28(); }
|
5034
|
5034
|
if (!position_is_reachable(pos, true)) return;
|
5035
|
5035
|
|
5036
|
5036
|
// Disable leveling so the planner won't mess with us
|
5037
|
|
- #if PLANNER_LEVELING
|
|
5037
|
+ #if HAS_LEVELING
|
5038
|
5038
|
set_bed_leveling_enabled(false);
|
5039
|
5039
|
#endif
|
5040
|
5040
|
|
|
@@ -5091,7 +5091,7 @@ void home_all_axes() { gcode_G28(); }
|
5091
|
5091
|
|
5092
|
5092
|
stepper.synchronize();
|
5093
|
5093
|
|
5094
|
|
- #if PLANNER_LEVELING
|
|
5094
|
+ #if HAS_LEVELING
|
5095
|
5095
|
set_bed_leveling_enabled(false);
|
5096
|
5096
|
#endif
|
5097
|
5097
|
|
|
@@ -7294,7 +7294,7 @@ inline void gcode_M115() {
|
7294
|
7294
|
#endif
|
7295
|
7295
|
|
7296
|
7296
|
// MESH_REPORT (M420 V)
|
7297
|
|
- #if PLANNER_LEVELING
|
|
7297
|
+ #if HAS_LEVELING
|
7298
|
7298
|
SERIAL_PROTOCOLLNPGM("Cap:LEVELING_DATA:1");
|
7299
|
7299
|
#else
|
7300
|
7300
|
SERIAL_PROTOCOLLNPGM("Cap:LEVELING_DATA:0");
|
|
@@ -8336,7 +8336,7 @@ void quickstop_stepper() {
|
8336
|
8336
|
SYNC_PLAN_POSITION_KINEMATIC();
|
8337
|
8337
|
}
|
8338
|
8338
|
|
8339
|
|
-#if PLANNER_LEVELING
|
|
8339
|
+#if HAS_LEVELING
|
8340
|
8340
|
/**
|
8341
|
8341
|
* M420: Enable/Disable Bed Leveling and/or set the Z fade height.
|
8342
|
8342
|
*
|
|
@@ -9857,12 +9857,12 @@ void process_next_command() {
|
9857
|
9857
|
gcode_G28();
|
9858
|
9858
|
break;
|
9859
|
9859
|
|
9860
|
|
- #if PLANNER_LEVELING || ENABLED(AUTO_BED_LEVELING_UBL)
|
|
9860
|
+ #if HAS_LEVELING
|
9861
|
9861
|
case 29: // G29 Detailed Z probe, probes the bed at 3 or more points,
|
9862
|
9862
|
// or provides access to the UBL System if enabled.
|
9863
|
9863
|
gcode_G29();
|
9864
|
9864
|
break;
|
9865
|
|
- #endif // PLANNER_LEVELING
|
|
9865
|
+ #endif // HAS_LEVELING
|
9866
|
9866
|
|
9867
|
9867
|
#if HAS_BED_PROBE
|
9868
|
9868
|
|
|
@@ -10363,7 +10363,7 @@ void process_next_command() {
|
10363
|
10363
|
break;
|
10364
|
10364
|
#endif // FILAMENT_WIDTH_SENSOR
|
10365
|
10365
|
|
10366
|
|
- #if PLANNER_LEVELING
|
|
10366
|
+ #if HAS_LEVELING
|
10367
|
10367
|
case 420: // M420: Enable/Disable Bed Leveling
|
10368
|
10368
|
gcode_M420();
|
10369
|
10369
|
break;
|
|
@@ -10917,7 +10917,7 @@ void get_cartesian_from_steppers() {
|
10917
|
10917
|
*/
|
10918
|
10918
|
void set_current_from_steppers_for_axis(const AxisEnum axis) {
|
10919
|
10919
|
get_cartesian_from_steppers();
|
10920
|
|
- #if PLANNER_LEVELING && DISABLED(AUTO_BED_LEVELING_UBL)
|
|
10920
|
+ #if PLANNER_LEVELING
|
10921
|
10921
|
planner.unapply_leveling(cartes);
|
10922
|
10922
|
#endif
|
10923
|
10923
|
if (axis == ALL_AXES)
|