Browse Source

Rename ENABLE_AUTO_BED_LEVELING

With the introduction of the #if ENABLED(…)

reads better than
Richard Wackerbarth 9 years ago
parent
commit
6292d9e815

+ 2
- 2
Marlin/Conditionals.h View File

279
   /**
279
   /**
280
    * Auto Bed Leveling
280
    * Auto Bed Leveling
281
    */
281
    */
282
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
282
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
283
     // Boundaries for probing based on set limits
283
     // Boundaries for probing based on set limits
284
     #define MIN_PROBE_X (max(X_MIN_POS, X_MIN_POS + X_PROBE_OFFSET_FROM_EXTRUDER))
284
     #define MIN_PROBE_X (max(X_MIN_POS, X_MIN_POS + X_PROBE_OFFSET_FROM_EXTRUDER))
285
     #define MAX_PROBE_X (min(X_MAX_POS, X_MAX_POS + X_PROBE_OFFSET_FROM_EXTRUDER))
285
     #define MAX_PROBE_X (min(X_MAX_POS, X_MAX_POS + X_PROBE_OFFSET_FROM_EXTRUDER))
287
     #define MAX_PROBE_Y (min(Y_MAX_POS, Y_MAX_POS + Y_PROBE_OFFSET_FROM_EXTRUDER))
287
     #define MAX_PROBE_Y (min(Y_MAX_POS, Y_MAX_POS + Y_PROBE_OFFSET_FROM_EXTRUDER))
288
   #endif
288
   #endif
289
 
289
 
290
-  #define SERVO_LEVELING (defined(ENABLE_AUTO_BED_LEVELING) && defined(Z_ENDSTOP_SERVO_NR))
290
+  #define SERVO_LEVELING (defined(AUTO_BED_LEVELING_FEATURE) && defined(Z_ENDSTOP_SERVO_NR))
291
 
291
 
292
    /**
292
    /**
293
     * Sled Options
293
     * Sled Options

+ 6
- 5
Marlin/Configuration.h View File

442
 
442
 
443
 // @section bedlevel
443
 // @section bedlevel
444
 
444
 
445
-//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
446
-#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z probe repeatability test will be included if auto bed leveling is enabled.
445
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
446
+//#define DEBUG_LEVELING_FEATURE
447
+#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
447
 
448
 
448
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
449
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
449
 
450
 
450
   // There are 2 different ways to specify probing locations:
451
   // There are 2 different ways to specify probing locations:
451
   //
452
   //
557
   //
558
   //
558
   //#define Z_MIN_PROBE_ENDSTOP
559
   //#define Z_MIN_PROBE_ENDSTOP
559
 
560
 
560
-#endif // ENABLE_AUTO_BED_LEVELING
561
+#endif // AUTO_BED_LEVELING_FEATURE
561
 
562
 
562
 
563
 
563
 // @section homing
564
 // @section homing
608
 // Custom M code points
609
 // Custom M code points
609
 #define CUSTOM_M_CODES
610
 #define CUSTOM_M_CODES
610
 #if ENABLED(CUSTOM_M_CODES)
611
 #if ENABLED(CUSTOM_M_CODES)
611
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
612
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
612
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
613
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
613
     #define Z_PROBE_OFFSET_RANGE_MIN -20
614
     #define Z_PROBE_OFFSET_RANGE_MIN -20
614
     #define Z_PROBE_OFFSET_RANGE_MAX 20
615
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 2
- 2
Marlin/Marlin.h View File

268
     extern float delta_diagonal_rod;
268
     extern float delta_diagonal_rod;
269
     extern float delta_segments_per_second;
269
     extern float delta_segments_per_second;
270
     void recalc_delta_settings(float radius, float diagonal_rod);
270
     void recalc_delta_settings(float radius, float diagonal_rod);
271
-    #if ENABLED(ENABLE_AUTO_BED_LEVELING)
271
+    #if ENABLED(AUTO_BED_LEVELING_FEATURE)
272
       extern int delta_grid_spacing[2];
272
       extern int delta_grid_spacing[2];
273
       void adjust_delta(float cartesian[3]);
273
       void adjust_delta(float cartesian[3]);
274
     #endif
274
     #endif
282
   extern float z_endstop_adj;
282
   extern float z_endstop_adj;
283
 #endif
283
 #endif
284
 
284
 
285
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
285
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
286
   extern float zprobe_zoffset;
286
   extern float zprobe_zoffset;
287
 #endif
287
 #endif
288
 
288
 

+ 27
- 27
Marlin/Marlin_main.cpp View File

29
 
29
 
30
 #include "Marlin.h"
30
 #include "Marlin.h"
31
 
31
 
32
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
32
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
33
   #include "vector_3.h"
33
   #include "vector_3.h"
34
   #if ENABLED(AUTO_BED_LEVELING_GRID)
34
   #if ENABLED(AUTO_BED_LEVELING_GRID)
35
     #include "qr_solve.h"
35
     #include "qr_solve.h"
36
   #endif
36
   #endif
37
-#endif // ENABLE_AUTO_BED_LEVELING
37
+#endif // AUTO_BED_LEVELING_FEATURE
38
 
38
 
39
 #if ENABLED(MESH_BED_LEVELING)
39
 #if ENABLED(MESH_BED_LEVELING)
40
   #include "mesh_bed_leveling.h"
40
   #include "mesh_bed_leveling.h"
288
 bool no_wait_for_cooling = true;
288
 bool no_wait_for_cooling = true;
289
 bool target_direction;
289
 bool target_direction;
290
 
290
 
291
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
291
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
292
   int xy_travel_speed = XY_TRAVEL_SPEED;
292
   int xy_travel_speed = XY_TRAVEL_SPEED;
293
   float zprobe_zoffset = Z_PROBE_OFFSET_FROM_EXTRUDER;
293
   float zprobe_zoffset = Z_PROBE_OFFSET_FROM_EXTRUDER;
294
 #endif
294
 #endif
366
   float delta_diagonal_rod = DELTA_DIAGONAL_ROD;
366
   float delta_diagonal_rod = DELTA_DIAGONAL_ROD;
367
   float delta_diagonal_rod_2 = sq(delta_diagonal_rod);
367
   float delta_diagonal_rod_2 = sq(delta_diagonal_rod);
368
   float delta_segments_per_second = DELTA_SEGMENTS_PER_SECOND;
368
   float delta_segments_per_second = DELTA_SEGMENTS_PER_SECOND;
369
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
369
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
370
     int delta_grid_spacing[2] = { 0, 0 };
370
     int delta_grid_spacing[2] = { 0, 0 };
371
     float bed_level[AUTO_BED_LEVELING_GRID_POINTS][AUTO_BED_LEVELING_GRID_POINTS];
371
     float bed_level[AUTO_BED_LEVELING_GRID_POINTS][AUTO_BED_LEVELING_GRID_POINTS];
372
   #endif
372
   #endif
1095
     min_pos[axis] = base_min_pos(axis) + home_offset[axis];
1095
     min_pos[axis] = base_min_pos(axis) + home_offset[axis];
1096
     max_pos[axis] = base_max_pos(axis) + home_offset[axis];
1096
     max_pos[axis] = base_max_pos(axis) + home_offset[axis];
1097
 
1097
 
1098
-    #if ENABLED(ENABLE_AUTO_BED_LEVELING) && Z_HOME_DIR < 0
1098
+    #if ENABLED(AUTO_BED_LEVELING_FEATURE) && Z_HOME_DIR < 0
1099
       if (axis == Z_AXIS) current_position[Z_AXIS] -= zprobe_zoffset;
1099
       if (axis == Z_AXIS) current_position[Z_AXIS] -= zprobe_zoffset;
1100
     #endif
1100
     #endif
1101
   }
1101
   }
1146
   enable_endstops(true);
1146
   enable_endstops(true);
1147
 }
1147
 }
1148
 
1148
 
1149
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
1149
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
1150
 
1150
 
1151
   #if ENABLED(DELTA)
1151
   #if ENABLED(DELTA)
1152
     /**
1152
     /**
1604
 
1604
 
1605
   #endif
1605
   #endif
1606
 
1606
 
1607
-#endif // ENABLE_AUTO_BED_LEVELING
1607
+#endif // AUTO_BED_LEVELING_FEATURE
1608
 
1608
 
1609
 
1609
 
1610
 #if ENABLED(Z_PROBE_SLED)
1610
 #if ENABLED(Z_PROBE_SLED)
2000
   st_synchronize();
2000
   st_synchronize();
2001
 
2001
 
2002
   // For auto bed leveling, clear the level matrix
2002
   // For auto bed leveling, clear the level matrix
2003
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
2003
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
2004
     plan_bed_level_matrix.set_to_identity();
2004
     plan_bed_level_matrix.set_to_identity();
2005
     #if ENABLED(DELTA)
2005
     #if ENABLED(DELTA)
2006
       reset_bed_level();
2006
       reset_bed_level();
2395
     } // switch(state)
2395
     } // switch(state)
2396
   }
2396
   }
2397
 
2397
 
2398
-#elif ENABLED(ENABLE_AUTO_BED_LEVELING)
2398
+#elif ENABLED(AUTO_BED_LEVELING_FEATURE)
2399
 
2399
 
2400
   void out_of_range_error(const char *p_edge) {
2400
   void out_of_range_error(const char *p_edge) {
2401
     SERIAL_PROTOCOLPGM("?Probe ");
2401
     SERIAL_PROTOCOLPGM("?Probe ");
2839
 
2839
 
2840
   #endif //!Z_PROBE_SLED
2840
   #endif //!Z_PROBE_SLED
2841
 
2841
 
2842
-#endif //ENABLE_AUTO_BED_LEVELING
2842
+#endif //AUTO_BED_LEVELING_FEATURE
2843
 
2843
 
2844
 /**
2844
 /**
2845
  * G92: Set current position to given X Y Z E
2845
  * G92: Set current position to given X Y Z E
3116
   } // code_seen('S')
3116
   } // code_seen('S')
3117
 }
3117
 }
3118
 
3118
 
3119
-#if ENABLED(ENABLE_AUTO_BED_LEVELING) && ENABLED(Z_MIN_PROBE_REPEATABILITY_TEST)
3119
+#if ENABLED(AUTO_BED_LEVELING_FEATURE) && ENABLED(Z_MIN_PROBE_REPEATABILITY_TEST)
3120
 
3120
 
3121
   // This is redundant since the SanityCheck.h already checks for a valid Z_MIN_PROBE_PIN, but here for clarity.
3121
   // This is redundant since the SanityCheck.h already checks for a valid Z_MIN_PROBE_PIN, but here for clarity.
3122
   #if ENABLED(Z_MIN_PROBE_ENDSTOP)
3122
   #if ENABLED(Z_MIN_PROBE_ENDSTOP)
3366
     SERIAL_EOL; SERIAL_EOL;
3366
     SERIAL_EOL; SERIAL_EOL;
3367
   }
3367
   }
3368
 
3368
 
3369
-#endif // ENABLE_AUTO_BED_LEVELING && Z_MIN_PROBE_REPEATABILITY_TEST
3369
+#endif // AUTO_BED_LEVELING_FEATURE && Z_MIN_PROBE_REPEATABILITY_TEST
3370
 
3370
 
3371
 /**
3371
 /**
3372
  * M104: Set hot end temperature
3372
  * M104: Set hot end temperature
4585
  */
4585
  */
4586
 inline void gcode_M400() { st_synchronize(); }
4586
 inline void gcode_M400() { st_synchronize(); }
4587
 
4587
 
4588
-#if ENABLED(ENABLE_AUTO_BED_LEVELING) && DISABLED(Z_PROBE_SLED) && (HAS_SERVO_ENDSTOPS || ENABLED(Z_PROBE_ALLEN_KEY))
4588
+#if ENABLED(AUTO_BED_LEVELING_FEATURE) && DISABLED(Z_PROBE_SLED) && (HAS_SERVO_ENDSTOPS || ENABLED(Z_PROBE_ALLEN_KEY))
4589
 
4589
 
4590
   /**
4590
   /**
4591
    * M401: Engage Z Servo endstop if available
4591
    * M401: Engage Z Servo endstop if available
4607
     stow_z_probe(false);
4607
     stow_z_probe(false);
4608
   }
4608
   }
4609
 
4609
 
4610
-#endif // ENABLE_AUTO_BED_LEVELING && (HAS_SERVO_ENDSTOPS || Z_PROBE_ALLEN_KEY) && !Z_PROBE_SLED
4610
+#endif // AUTO_BED_LEVELING_FEATURE && (HAS_SERVO_ENDSTOPS || Z_PROBE_ALLEN_KEY) && !Z_PROBE_SLED
4611
 
4611
 
4612
 #if ENABLED(FILAMENT_SENSOR)
4612
 #if ENABLED(FILAMENT_SENSOR)
4613
 
4613
 
5282
         gcode_G28();
5282
         gcode_G28();
5283
         break;
5283
         break;
5284
 
5284
 
5285
-      #if ENABLED(ENABLE_AUTO_BED_LEVELING) || ENABLED(MESH_BED_LEVELING)
5285
+      #if ENABLED(AUTO_BED_LEVELING_FEATURE) || ENABLED(MESH_BED_LEVELING)
5286
         case 29: // G29 Detailed Z probe, probes the bed at 3 or more points.
5286
         case 29: // G29 Detailed Z probe, probes the bed at 3 or more points.
5287
           gcode_G29();
5287
           gcode_G29();
5288
           break;
5288
           break;
5289
       #endif
5289
       #endif
5290
 
5290
 
5291
-      #if ENABLED(ENABLE_AUTO_BED_LEVELING)
5291
+      #if ENABLED(AUTO_BED_LEVELING_FEATURE)
5292
 
5292
 
5293
         #if DISABLED(Z_PROBE_SLED)
5293
         #if DISABLED(Z_PROBE_SLED)
5294
 
5294
 
5305
 
5305
 
5306
         #endif // Z_PROBE_SLED
5306
         #endif // Z_PROBE_SLED
5307
 
5307
 
5308
-      #endif // ENABLE_AUTO_BED_LEVELING
5308
+      #endif // AUTO_BED_LEVELING_FEATURE
5309
 
5309
 
5310
       case 90: // G90
5310
       case 90: // G90
5311
         relative_mode = false;
5311
         relative_mode = false;
5377
         gcode_M42();
5377
         gcode_M42();
5378
         break;
5378
         break;
5379
 
5379
 
5380
-      #if ENABLED(ENABLE_AUTO_BED_LEVELING) && ENABLED(Z_MIN_PROBE_REPEATABILITY_TEST)
5380
+      #if ENABLED(AUTO_BED_LEVELING_FEATURE) && ENABLED(Z_MIN_PROBE_REPEATABILITY_TEST)
5381
         case 48: // M48 Z probe repeatability
5381
         case 48: // M48 Z probe repeatability
5382
           gcode_M48();
5382
           gcode_M48();
5383
           break;
5383
           break;
5384
-      #endif // ENABLE_AUTO_BED_LEVELING && Z_MIN_PROBE_REPEATABILITY_TEST
5384
+      #endif // AUTO_BED_LEVELING_FEATURE && Z_MIN_PROBE_REPEATABILITY_TEST
5385
 
5385
 
5386
       #if ENABLED(M100_FREE_MEMORY_WATCHER)
5386
       #if ENABLED(M100_FREE_MEMORY_WATCHER)
5387
         case 100:
5387
         case 100:
5650
         gcode_M400();
5650
         gcode_M400();
5651
         break;
5651
         break;
5652
 
5652
 
5653
-      #if ENABLED(ENABLE_AUTO_BED_LEVELING) && (HAS_SERVO_ENDSTOPS || ENABLED(Z_PROBE_ALLEN_KEY)) && DISABLED(Z_PROBE_SLED)
5653
+      #if ENABLED(AUTO_BED_LEVELING_FEATURE) && (HAS_SERVO_ENDSTOPS || ENABLED(Z_PROBE_ALLEN_KEY)) && DISABLED(Z_PROBE_SLED)
5654
         case 401:
5654
         case 401:
5655
           gcode_M401();
5655
           gcode_M401();
5656
           break;
5656
           break;
5657
         case 402:
5657
         case 402:
5658
           gcode_M402();
5658
           gcode_M402();
5659
           break;
5659
           break;
5660
-      #endif // ENABLE_AUTO_BED_LEVELING && (HAS_SERVO_ENDSTOPS || Z_PROBE_ALLEN_KEY) && !Z_PROBE_SLED
5660
+      #endif // AUTO_BED_LEVELING_FEATURE && (HAS_SERVO_ENDSTOPS || Z_PROBE_ALLEN_KEY) && !Z_PROBE_SLED
5661
 
5661
 
5662
       #if ENABLED(FILAMENT_SENSOR)
5662
       #if ENABLED(FILAMENT_SENSOR)
5663
         case 404:  //M404 Enter the nominal filament width (3mm, 1.75mm ) N<3.0> or display nominal filament width
5663
         case 404:  //M404 Enter the nominal filament width (3mm, 1.75mm ) N<3.0> or display nominal filament width
5799
     NOLESS(target[Y_AXIS], min_pos[Y_AXIS]);
5799
     NOLESS(target[Y_AXIS], min_pos[Y_AXIS]);
5800
     
5800
     
5801
     float negative_z_offset = 0;
5801
     float negative_z_offset = 0;
5802
-    #if ENABLED(ENABLE_AUTO_BED_LEVELING)
5802
+    #if ENABLED(AUTO_BED_LEVELING_FEATURE)
5803
       if (zprobe_zoffset < 0) negative_z_offset += zprobe_zoffset;
5803
       if (zprobe_zoffset < 0) negative_z_offset += zprobe_zoffset;
5804
       if (home_offset[Z_AXIS] < 0) negative_z_offset += home_offset[Z_AXIS];
5804
       if (home_offset[Z_AXIS] < 0) negative_z_offset += home_offset[Z_AXIS];
5805
     #endif
5805
     #endif
5849
     */
5849
     */
5850
   }
5850
   }
5851
 
5851
 
5852
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
5852
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
5853
 
5853
 
5854
     // Adjust print surface height by linear interpolation over the bed_level array.
5854
     // Adjust print surface height by linear interpolation over the bed_level array.
5855
     void adjust_delta(float cartesian[3]) {
5855
     void adjust_delta(float cartesian[3]) {
5889
       SERIAL_ECHOPGM(" offset="); SERIAL_ECHOLN(offset);
5889
       SERIAL_ECHOPGM(" offset="); SERIAL_ECHOLN(offset);
5890
       */
5890
       */
5891
     }
5891
     }
5892
-  #endif // ENABLE_AUTO_BED_LEVELING
5892
+  #endif // AUTO_BED_LEVELING_FEATURE
5893
 
5893
 
5894
 #endif // DELTA
5894
 #endif // DELTA
5895
 
5895
 
6008
 
6008
 
6009
       calculate_delta(target);
6009
       calculate_delta(target);
6010
 
6010
 
6011
-      #if ENABLED(ENABLE_AUTO_BED_LEVELING)
6011
+      #if ENABLED(AUTO_BED_LEVELING_FEATURE)
6012
         adjust_delta(target);
6012
         adjust_delta(target);
6013
       #endif
6013
       #endif
6014
 
6014
 
6236
 
6236
 
6237
     #if ENABLED(DELTA) || ENABLED(SCARA)
6237
     #if ENABLED(DELTA) || ENABLED(SCARA)
6238
       calculate_delta(arc_target);
6238
       calculate_delta(arc_target);
6239
-      #if ENABLED(ENABLE_AUTO_BED_LEVELING)
6239
+      #if ENABLED(AUTO_BED_LEVELING_FEATURE)
6240
         adjust_delta(arc_target);
6240
         adjust_delta(arc_target);
6241
       #endif
6241
       #endif
6242
       plan_buffer_line(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], arc_target[E_AXIS], feed_rate, active_extruder);
6242
       plan_buffer_line(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], arc_target[E_AXIS], feed_rate, active_extruder);
6248
   // Ensure last segment arrives at target location.
6248
   // Ensure last segment arrives at target location.
6249
   #if ENABLED(DELTA) || ENABLED(SCARA)
6249
   #if ENABLED(DELTA) || ENABLED(SCARA)
6250
     calculate_delta(target);
6250
     calculate_delta(target);
6251
-    #if ENABLED(ENABLE_AUTO_BED_LEVELING)
6251
+    #if ENABLED(AUTO_BED_LEVELING_FEATURE)
6252
       adjust_delta(target);
6252
       adjust_delta(target);
6253
     #endif
6253
     #endif
6254
     plan_buffer_line(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], target[E_AXIS], feed_rate, active_extruder);
6254
     plan_buffer_line(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], target[E_AXIS], feed_rate, active_extruder);

+ 8
- 6
Marlin/SanityCheck.h View File

116
     #if ENABLED(DELTA)
116
     #if ENABLED(DELTA)
117
       #error MESH_BED_LEVELING does not yet support DELTA printers.
117
       #error MESH_BED_LEVELING does not yet support DELTA printers.
118
     #endif
118
     #endif
119
-    #if ENABLED(ENABLE_AUTO_BED_LEVELING)
120
-      #error Select ENABLE_AUTO_BED_LEVELING or MESH_BED_LEVELING, not both.
119
+    #if ENABLED(AUTO_BED_LEVELING_FEATURE)
120
+      #error Select AUTO_BED_LEVELING_FEATURE or MESH_BED_LEVELING, not both.
121
     #endif
121
     #endif
122
     #if MESH_NUM_X_POINTS > 7 || MESH_NUM_Y_POINTS > 7
122
     #if MESH_NUM_X_POINTS > 7 || MESH_NUM_Y_POINTS > 7
123
       #error MESH_NUM_X_POINTS and MESH_NUM_Y_POINTS need to be less than 8.
123
       #error MESH_NUM_X_POINTS and MESH_NUM_Y_POINTS need to be less than 8.
127
   /**
127
   /**
128
    * Auto Bed Leveling
128
    * Auto Bed Leveling
129
    */
129
    */
130
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
130
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
131
 
131
 
132
     /**
132
     /**
133
      * Require a Z min pin
133
      * Require a Z min pin
137
         #if ENABLED(Z_MIN_PROBE_REPEATABILITY_TEST)
137
         #if ENABLED(Z_MIN_PROBE_REPEATABILITY_TEST)
138
           #error You must have a Z min or Z probe endstop to enable Z_MIN_PROBE_REPEATABILITY_TEST.
138
           #error You must have a Z min or Z probe endstop to enable Z_MIN_PROBE_REPEATABILITY_TEST.
139
         #else
139
         #else
140
-          #error ENABLE_AUTO_BED_LEVELING requires a Z min or Z probe endstop. Z_MIN_PIN or Z_MIN_PROBE_PIN must point to a valid hardware pin.
140
+          #error AUTO_BED_LEVELING_FEATURE requires a Z_MIN or Z_PROBE endstop. Z_MIN_PIN or Z_MIN_PROBE_PIN must point to a valid hardware pin.
141
         #endif
141
         #endif
142
       #endif
142
       #endif
143
     #endif
143
     #endif
207
 
207
 
208
     #endif // !AUTO_BED_LEVELING_GRID
208
     #endif // !AUTO_BED_LEVELING_GRID
209
 
209
 
210
-  #endif // ENABLE_AUTO_BED_LEVELING
210
+  #endif // AUTO_BED_LEVELING_FEATURE
211
 
211
 
212
   /**
212
   /**
213
    * ULTIPANEL encoder
213
    * ULTIPANEL encoder
221
    */
221
    */
222
   #if ENABLED(DELTA)
222
   #if ENABLED(DELTA)
223
 
223
 
224
-    #if ENABLED(ENABLE_AUTO_BED_LEVELING)
224
+    #if ENABLED(AUTO_BED_LEVELING_FEATURE)
225
 
225
 
226
       #if DISABLED(AUTO_BED_LEVELING_GRID)
226
       #if DISABLED(AUTO_BED_LEVELING_GRID)
227
         #error Only AUTO_BED_LEVELING_GRID is supported with DELTA.
227
         #error Only AUTO_BED_LEVELING_GRID is supported with DELTA.
362
     #error CUSTOM_MENDEL_NAME is now CUSTOM_MACHINE_NAME. Please update your configuration.
362
     #error CUSTOM_MENDEL_NAME is now CUSTOM_MACHINE_NAME. Please update your configuration.
363
   #elif defined(HAS_AUTOMATIC_VERSIONING)
363
   #elif defined(HAS_AUTOMATIC_VERSIONING)
364
     #error HAS_AUTOMATIC_VERSIONING deprecated - use USE_AUTOMATIC_VERSIONING instead
364
     #error HAS_AUTOMATIC_VERSIONING deprecated - use USE_AUTOMATIC_VERSIONING instead
365
+  #elif defined(ENABLE_AUTO_BED_LEVELING)
366
+    #error ENABLE_AUTO_BED_LEVELING deprecated - use AUTO_BED_LEVELING_FEATURE instead
365
   #endif
367
   #endif
366
 
368
 
367
 #endif //SANITYCHECK_H
369
 #endif //SANITYCHECK_H

+ 4
- 4
Marlin/configuration_store.cpp View File

171
     for (uint8_t q=0; q<mesh_num_x*mesh_num_y; q++) EEPROM_WRITE_VAR(i, dummy);
171
     for (uint8_t q=0; q<mesh_num_x*mesh_num_y; q++) EEPROM_WRITE_VAR(i, dummy);
172
   #endif // MESH_BED_LEVELING
172
   #endif // MESH_BED_LEVELING
173
 
173
 
174
-  #if DISABLED(ENABLE_AUTO_BED_LEVELING)
174
+  #if DISABLED(AUTO_BED_LEVELING_FEATURE)
175
     float zprobe_zoffset = 0;
175
     float zprobe_zoffset = 0;
176
   #endif
176
   #endif
177
   EEPROM_WRITE_VAR(i, zprobe_zoffset);
177
   EEPROM_WRITE_VAR(i, zprobe_zoffset);
339
       for (int q = 0; q < mesh_num_x * mesh_num_y; q++) EEPROM_READ_VAR(i, dummy);
339
       for (int q = 0; q < mesh_num_x * mesh_num_y; q++) EEPROM_READ_VAR(i, dummy);
340
     #endif // MESH_BED_LEVELING
340
     #endif // MESH_BED_LEVELING
341
 
341
 
342
-    #if DISABLED(ENABLE_AUTO_BED_LEVELING)
342
+    #if DISABLED(AUTO_BED_LEVELING_FEATURE)
343
       float zprobe_zoffset = 0;
343
       float zprobe_zoffset = 0;
344
     #endif
344
     #endif
345
     EEPROM_READ_VAR(i, zprobe_zoffset);
345
     EEPROM_READ_VAR(i, zprobe_zoffset);
498
     mbl.active = 0;
498
     mbl.active = 0;
499
   #endif
499
   #endif
500
 
500
 
501
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
501
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
502
     zprobe_zoffset = Z_PROBE_OFFSET_FROM_EXTRUDER;
502
     zprobe_zoffset = Z_PROBE_OFFSET_FROM_EXTRUDER;
503
   #endif
503
   #endif
504
 
504
 
857
   /**
857
   /**
858
    * Auto Bed Leveling
858
    * Auto Bed Leveling
859
    */
859
    */
860
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
860
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
861
     #if ENABLED(CUSTOM_M_CODES)
861
     #if ENABLED(CUSTOM_M_CODES)
862
       if (!forReplay) {
862
       if (!forReplay) {
863
         CONFIG_ECHO_START;
863
         CONFIG_ECHO_START;

+ 6
- 5
Marlin/configurator/config/Configuration.h View File

442
 
442
 
443
 // @section bedlevel
443
 // @section bedlevel
444
 
444
 
445
-//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
446
-#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z probe repeatability test will be included if auto bed leveling is enabled.
445
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
446
+//#define DEBUG_LEVELING_FEATURE
447
+#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
447
 
448
 
448
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
449
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
449
 
450
 
450
   // There are 2 different ways to specify probing locations:
451
   // There are 2 different ways to specify probing locations:
451
   //
452
   //
557
   //
558
   //
558
   //#define Z_MIN_PROBE_ENDSTOP
559
   //#define Z_MIN_PROBE_ENDSTOP
559
 
560
 
560
-#endif // ENABLE_AUTO_BED_LEVELING
561
+#endif // AUTO_BED_LEVELING_FEATURE
561
 
562
 
562
 
563
 
563
 // @section homing
564
 // @section homing
608
 // Custom M code points
609
 // Custom M code points
609
 #define CUSTOM_M_CODES
610
 #define CUSTOM_M_CODES
610
 #if ENABLED(CUSTOM_M_CODES)
611
 #if ENABLED(CUSTOM_M_CODES)
611
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
612
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
612
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
613
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
613
     #define Z_PROBE_OFFSET_RANGE_MIN -20
614
     #define Z_PROBE_OFFSET_RANGE_MIN -20
614
     #define Z_PROBE_OFFSET_RANGE_MAX 20
615
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 6
- 5
Marlin/example_configurations/Felix/Configuration.h View File

424
 
424
 
425
 // @section bedlevel
425
 // @section bedlevel
426
 
426
 
427
-//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
428
-//#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z probe repeatability test will be included if auto bed leveling is enabled.
427
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
428
+//#define DEBUG_LEVELING_FEATURE
429
+//#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
429
 
430
 
430
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
431
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
431
 
432
 
432
   // There are 2 different ways to specify probing locations:
433
   // There are 2 different ways to specify probing locations:
433
   //
434
   //
539
   //
540
   //
540
   //#define Z_MIN_PROBE_ENDSTOP
541
   //#define Z_MIN_PROBE_ENDSTOP
541
 
542
 
542
-#endif // ENABLE_AUTO_BED_LEVELING
543
+#endif // AUTO_BED_LEVELING_FEATURE
543
 
544
 
544
 
545
 
545
 // @section homing
546
 // @section homing
591
 // Custom M code points
592
 // Custom M code points
592
 #define CUSTOM_M_CODES
593
 #define CUSTOM_M_CODES
593
 #if ENABLED(CUSTOM_M_CODES)
594
 #if ENABLED(CUSTOM_M_CODES)
594
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
595
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
595
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
596
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
596
     #define Z_PROBE_OFFSET_RANGE_MIN -20
597
     #define Z_PROBE_OFFSET_RANGE_MIN -20
597
     #define Z_PROBE_OFFSET_RANGE_MAX 20
598
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 7
- 5
Marlin/example_configurations/Felix/Configuration_DUAL.h View File

394
 
394
 
395
 // @section bedlevel
395
 // @section bedlevel
396
 
396
 
397
-//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
398
-//#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z probe repeatability test will be included if auto bed leveling is enabled.
399
 
397
 
400
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
398
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
399
+//#define DEBUG_LEVELING_FEATURE
400
+//#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
401
+
402
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
401
 
403
 
402
   // There are 2 different ways to specify probing locations:
404
   // There are 2 different ways to specify probing locations:
403
   //
405
   //
509
   //
511
   //
510
   //#define Z_MIN_PROBE_ENDSTOP
512
   //#define Z_MIN_PROBE_ENDSTOP
511
 
513
 
512
-#endif // ENABLE_AUTO_BED_LEVELING
514
+#endif // AUTO_BED_LEVELING_FEATURE
513
 
515
 
514
 
516
 
515
 // The position of the homing switches
517
 // The position of the homing switches
561
 // Custom M code points
563
 // Custom M code points
562
 #define CUSTOM_M_CODES
564
 #define CUSTOM_M_CODES
563
 #if ENABLED(CUSTOM_M_CODES)
565
 #if ENABLED(CUSTOM_M_CODES)
564
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
566
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
565
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
567
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
566
     #define Z_PROBE_OFFSET_RANGE_MIN -20
568
     #define Z_PROBE_OFFSET_RANGE_MIN -20
567
     #define Z_PROBE_OFFSET_RANGE_MAX 20
569
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 7
- 5
Marlin/example_configurations/Hephestos/Configuration.h View File

434
 
434
 
435
 // @section bedlevel
435
 // @section bedlevel
436
 
436
 
437
-//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
438
-#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z probe repeatability test will be included if auto bed leveling is enabled.
439
 
437
 
440
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
438
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
439
+//#define DEBUG_LEVELING_FEATURE
440
+#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
441
+
442
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
441
 
443
 
442
   // There are 2 different ways to specify probing locations:
444
   // There are 2 different ways to specify probing locations:
443
   //
445
   //
549
   //
551
   //
550
   //#define Z_MIN_PROBE_ENDSTOP
552
   //#define Z_MIN_PROBE_ENDSTOP
551
 
553
 
552
-#endif // ENABLE_AUTO_BED_LEVELING
554
+#endif // AUTO_BED_LEVELING_FEATURE
553
 
555
 
554
 
556
 
555
 // @section homing
557
 // @section homing
600
 // Custom M code points
602
 // Custom M code points
601
 #define CUSTOM_M_CODES
603
 #define CUSTOM_M_CODES
602
 #if ENABLED(CUSTOM_M_CODES)
604
 #if ENABLED(CUSTOM_M_CODES)
603
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
605
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
604
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
606
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
605
     #define Z_PROBE_OFFSET_RANGE_MIN -20
607
     #define Z_PROBE_OFFSET_RANGE_MIN -20
606
     #define Z_PROBE_OFFSET_RANGE_MAX 20
608
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 6
- 5
Marlin/example_configurations/K8200/Configuration.h View File

430
 
430
 
431
 // @section bedlevel
431
 // @section bedlevel
432
 
432
 
433
-//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
434
-#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z probe repeatability test will be included if auto bed leveling is enabled.
433
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
434
+//#define DEBUG_LEVELING_FEATURE
435
+#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
435
 
436
 
436
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
437
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
437
 
438
 
438
   // There are 2 different ways to specify probing locations:
439
   // There are 2 different ways to specify probing locations:
439
   //
440
   //
545
   //
546
   //
546
   //#define Z_MIN_PROBE_ENDSTOP
547
   //#define Z_MIN_PROBE_ENDSTOP
547
 
548
 
548
-#endif // ENABLE_AUTO_BED_LEVELING
549
+#endif // AUTO_BED_LEVELING_FEATURE
549
 
550
 
550
 
551
 
551
 // @section homing
552
 // @section homing
596
 // Custom M code points
597
 // Custom M code points
597
 #define CUSTOM_M_CODES
598
 #define CUSTOM_M_CODES
598
 #if ENABLED(CUSTOM_M_CODES)
599
 #if ENABLED(CUSTOM_M_CODES)
599
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
600
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
600
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
601
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
601
     #define Z_PROBE_OFFSET_RANGE_MIN -20
602
     #define Z_PROBE_OFFSET_RANGE_MIN -20
602
     #define Z_PROBE_OFFSET_RANGE_MAX 20
603
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 7
- 5
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

442
 
442
 
443
 // @section bedlevel
443
 // @section bedlevel
444
 
444
 
445
-//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
446
-#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z probe repeatability test will be included if auto bed leveling is enabled.
447
 
445
 
448
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
446
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
447
+//#define DEBUG_LEVELING_FEATURE
448
+#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
449
+
450
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
449
 
451
 
450
   // There are 2 different ways to specify probing locations:
452
   // There are 2 different ways to specify probing locations:
451
   //
453
   //
557
   //
559
   //
558
   //#define Z_MIN_PROBE_ENDSTOP
560
   //#define Z_MIN_PROBE_ENDSTOP
559
 
561
 
560
-#endif // ENABLE_AUTO_BED_LEVELING
562
+#endif // AUTO_BED_LEVELING_FEATURE
561
 
563
 
562
 
564
 
563
 // @section homing
565
 // @section homing
608
 // Custom M code points
610
 // Custom M code points
609
 #define CUSTOM_M_CODES
611
 #define CUSTOM_M_CODES
610
 #if ENABLED(CUSTOM_M_CODES)
612
 #if ENABLED(CUSTOM_M_CODES)
611
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
613
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
612
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
614
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
613
     #define Z_PROBE_OFFSET_RANGE_MIN -20
615
     #define Z_PROBE_OFFSET_RANGE_MIN -20
614
     #define Z_PROBE_OFFSET_RANGE_MAX 20
616
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 6
- 5
Marlin/example_configurations/RigidBot/Configuration.h View File

428
 
428
 
429
 // @section bedlevel
429
 // @section bedlevel
430
 
430
 
431
-//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
432
-//#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z probe repeatability test will be included if auto bed leveling is enabled.
431
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
432
+//#define DEBUG_LEVELING_FEATURE
433
+//#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
433
 
434
 
434
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
435
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
435
 
436
 
436
   // There are 2 different ways to specify probing locations:
437
   // There are 2 different ways to specify probing locations:
437
   //
438
   //
543
   //
544
   //
544
   //#define Z_MIN_PROBE_ENDSTOP
545
   //#define Z_MIN_PROBE_ENDSTOP
545
 
546
 
546
-#endif // ENABLE_AUTO_BED_LEVELING
547
+#endif // AUTO_BED_LEVELING_FEATURE
547
 
548
 
548
 
549
 
549
 // @section homing
550
 // @section homing
595
 // Custom M code points
596
 // Custom M code points
596
 #define CUSTOM_M_CODES
597
 #define CUSTOM_M_CODES
597
 #if ENABLED(CUSTOM_M_CODES)
598
 #if ENABLED(CUSTOM_M_CODES)
598
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
599
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
599
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
600
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
600
     #define Z_PROBE_OFFSET_RANGE_MIN -20
601
     #define Z_PROBE_OFFSET_RANGE_MIN -20
601
     #define Z_PROBE_OFFSET_RANGE_MAX 20
602
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 6
- 5
Marlin/example_configurations/SCARA/Configuration.h View File

450
 
450
 
451
 // @section bedlevel
451
 // @section bedlevel
452
 
452
 
453
-//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
454
-#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z probe repeatability test will be included if auto bed leveling is enabled.
453
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
454
+//#define DEBUG_LEVELING_FEATURE
455
+#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
455
 
456
 
456
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
457
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
457
 
458
 
458
   // There are 2 different ways to specify probing locations:
459
   // There are 2 different ways to specify probing locations:
459
   //
460
   //
565
   //
566
   //
566
   //#define Z_MIN_PROBE_ENDSTOP
567
   //#define Z_MIN_PROBE_ENDSTOP
567
 
568
 
568
-#endif // ENABLE_AUTO_BED_LEVELING
569
+#endif // AUTO_BED_LEVELING_FEATURE
569
 
570
 
570
 
571
 
571
 // @section homing
572
 // @section homing
616
 // Custom M code points
617
 // Custom M code points
617
 //#define CUSTOM_M_CODES
618
 //#define CUSTOM_M_CODES
618
 #if ENABLED(CUSTOM_M_CODES)
619
 #if ENABLED(CUSTOM_M_CODES)
619
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
620
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
620
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
621
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
621
     #define Z_PROBE_OFFSET_RANGE_MIN -20
622
     #define Z_PROBE_OFFSET_RANGE_MIN -20
622
     #define Z_PROBE_OFFSET_RANGE_MAX 20
623
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 6
- 5
Marlin/example_configurations/WITBOX/Configuration.h View File

434
 
434
 
435
 // @section bedlevel
435
 // @section bedlevel
436
 
436
 
437
-//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
438
-#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z probe repeatability test will be included if auto bed leveling is enabled.
437
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
438
+//#define DEBUG_LEVELING_FEATURE
439
+#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
439
 
440
 
440
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
441
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
441
 
442
 
442
   // There are 2 different ways to specify probing locations:
443
   // There are 2 different ways to specify probing locations:
443
   //
444
   //
549
   //
550
   //
550
   //#define Z_MIN_PROBE_ENDSTOP
551
   //#define Z_MIN_PROBE_ENDSTOP
551
 
552
 
552
-#endif // ENABLE_AUTO_BED_LEVELING
553
+#endif // AUTO_BED_LEVELING_FEATURE
553
 
554
 
554
 
555
 
555
 // @section homing
556
 // @section homing
600
 // Custom M code points
601
 // Custom M code points
601
 #define CUSTOM_M_CODES
602
 #define CUSTOM_M_CODES
602
 #if ENABLED(CUSTOM_M_CODES)
603
 #if ENABLED(CUSTOM_M_CODES)
603
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
604
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
604
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
605
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
605
     #define Z_PROBE_OFFSET_RANGE_MIN -20
606
     #define Z_PROBE_OFFSET_RANGE_MIN -20
606
     #define Z_PROBE_OFFSET_RANGE_MAX 20
607
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 7
- 5
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

442
 
442
 
443
 // @section bedlevel
443
 // @section bedlevel
444
 
444
 
445
-//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
446
-#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z probe repeatability test will be included if auto bed leveling is enabled.
447
 
445
 
448
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
446
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
447
+//#define DEBUG_LEVELING_FEATURE
448
+#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
449
+
450
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
449
 
451
 
450
   // There are 2 different ways to specify probing locations:
452
   // There are 2 different ways to specify probing locations:
451
   //
453
   //
557
   //
559
   //
558
   //#define Z_MIN_PROBE_ENDSTOP
560
   //#define Z_MIN_PROBE_ENDSTOP
559
 
561
 
560
-#endif // ENABLE_AUTO_BED_LEVELING
562
+#endif // AUTO_BED_LEVELING_FEATURE
561
 
563
 
562
 
564
 
563
 // @section homing
565
 // @section homing
608
 // Custom M code points
610
 // Custom M code points
609
 #define CUSTOM_M_CODES
611
 #define CUSTOM_M_CODES
610
 #if ENABLED(CUSTOM_M_CODES)
612
 #if ENABLED(CUSTOM_M_CODES)
611
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
613
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
612
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
614
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
613
     #define Z_PROBE_OFFSET_RANGE_MIN -20
615
     #define Z_PROBE_OFFSET_RANGE_MIN -20
614
     #define Z_PROBE_OFFSET_RANGE_MAX 20
616
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 6
- 5
Marlin/example_configurations/delta/biv2.5/Configuration.h View File

477
 
477
 
478
 // @section bedlevel
478
 // @section bedlevel
479
 
479
 
480
-//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
481
-//#define Z_MIN_PROBE_REPEATABILITY_TEST // Z probe repeatability test is not supported in Deltas yet.
480
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
481
+//#define DEBUG_LEVELING_FEATURE
482
+#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
482
 
483
 
483
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
484
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
484
 
485
 
485
   // There are 2 different ways to specify probing locations:
486
   // There are 2 different ways to specify probing locations:
486
   //
487
   //
677
   //
678
   //
678
   //#define Z_MIN_PROBE_ENDSTOP
679
   //#define Z_MIN_PROBE_ENDSTOP
679
 
680
 
680
-#endif // ENABLE_AUTO_BED_LEVELING
681
+#endif // AUTO_BED_LEVELING_FEATURE
681
 
682
 
682
 
683
 
683
 // @section homing
684
 // @section homing
728
 // Custom M code points
729
 // Custom M code points
729
 #define CUSTOM_M_CODES
730
 #define CUSTOM_M_CODES
730
 #if ENABLED(CUSTOM_M_CODES)
731
 #if ENABLED(CUSTOM_M_CODES)
731
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
732
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
732
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
733
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
733
     #define Z_PROBE_OFFSET_RANGE_MIN -20
734
     #define Z_PROBE_OFFSET_RANGE_MIN -20
734
     #define Z_PROBE_OFFSET_RANGE_MAX 20
735
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 7
- 5
Marlin/example_configurations/delta/generic/Configuration.h View File

477
 
477
 
478
 // @section bedlevel
478
 // @section bedlevel
479
 
479
 
480
-//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
481
-//#define Z_MIN_PROBE_REPEATABILITY_TEST // Z probe repeatability test is not supported in Deltas yet.
482
 
480
 
483
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
481
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
482
+//#define DEBUG_LEVELING_FEATURE
483
+//#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
484
+
485
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
484
 
486
 
485
   // There are 2 different ways to specify probing locations.
487
   // There are 2 different ways to specify probing locations.
486
   //
488
   //
677
   //
679
   //
678
   //#define Z_MIN_PROBE_ENDSTOP
680
   //#define Z_MIN_PROBE_ENDSTOP
679
 
681
 
680
-#endif // ENABLE_AUTO_BED_LEVELING
682
+#endif // AUTO_BED_LEVELING_FEATURE
681
 
683
 
682
 
684
 
683
 // @section homing
685
 // @section homing
728
 // Custom M code points
730
 // Custom M code points
729
 #define CUSTOM_M_CODES
731
 #define CUSTOM_M_CODES
730
 #if ENABLED(CUSTOM_M_CODES)
732
 #if ENABLED(CUSTOM_M_CODES)
731
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
733
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
732
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
734
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
733
     #define Z_PROBE_OFFSET_RANGE_MIN -20
735
     #define Z_PROBE_OFFSET_RANGE_MIN -20
734
     #define Z_PROBE_OFFSET_RANGE_MAX 20
736
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 7
- 5
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

477
 
477
 
478
 // @section bedlevel
478
 // @section bedlevel
479
 
479
 
480
-#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
481
-//#define Z_MIN_PROBE_REPEATABILITY_TEST // Z probe repeatability test is not supported in Deltas yet.
482
 
480
 
483
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
481
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
482
+//#define DEBUG_LEVELING_FEATURE
483
+#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
484
+
485
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
484
 
486
 
485
   // There are 2 different ways to specify probing locations:
487
   // There are 2 different ways to specify probing locations:
486
   //
488
   //
681
   //
683
   //
682
   //#define Z_MIN_PROBE_ENDSTOP
684
   //#define Z_MIN_PROBE_ENDSTOP
683
 
685
 
684
-#endif // ENABLE_AUTO_BED_LEVELING
686
+#endif // AUTO_BED_LEVELING_FEATURE
685
 
687
 
686
 
688
 
687
 // @section homing
689
 // @section homing
732
 // Custom M code points
734
 // Custom M code points
733
 #define CUSTOM_M_CODES
735
 #define CUSTOM_M_CODES
734
 #if ENABLED(CUSTOM_M_CODES)
736
 #if ENABLED(CUSTOM_M_CODES)
735
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
737
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
736
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
738
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
737
     #define Z_PROBE_OFFSET_RANGE_MIN -20
739
     #define Z_PROBE_OFFSET_RANGE_MIN -20
738
     #define Z_PROBE_OFFSET_RANGE_MAX 20
740
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 7
- 5
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

464
 
464
 
465
 // @section bedlevel
465
 // @section bedlevel
466
 
466
 
467
-#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
468
-//#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z probe repeatability test will be included if auto bed leveling is enabled.
469
 
467
 
470
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
468
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
469
+//#define DEBUG_LEVELING_FEATURE
470
+#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
471
+
472
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
471
 
473
 
472
   // There are 2 different ways to specify probing locations:
474
   // There are 2 different ways to specify probing locations:
473
   //
475
   //
666
   //
668
   //
667
   //#define Z_MIN_PROBE_ENDSTOP
669
   //#define Z_MIN_PROBE_ENDSTOP
668
 
670
 
669
-#endif // ENABLE_AUTO_BED_LEVELING
671
+#endif // AUTO_BED_LEVELING_FEATURE
670
 
672
 
671
 
673
 
672
 // @section homing
674
 // @section homing
727
 // Custom M code points
729
 // Custom M code points
728
 #define CUSTOM_M_CODES
730
 #define CUSTOM_M_CODES
729
 #if ENABLED(CUSTOM_M_CODES)
731
 #if ENABLED(CUSTOM_M_CODES)
730
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
732
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
731
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
733
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
732
     #define Z_PROBE_OFFSET_RANGE_MIN -15
734
     #define Z_PROBE_OFFSET_RANGE_MIN -15
733
     #define Z_PROBE_OFFSET_RANGE_MAX -5
735
     #define Z_PROBE_OFFSET_RANGE_MAX -5

+ 6
- 5
Marlin/example_configurations/makibox/Configuration.h View File

445
 
445
 
446
 // @section bedlevel
446
 // @section bedlevel
447
 
447
 
448
-//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
449
-#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z probe repeatability test will be included if auto bed leveling is enabled.
448
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
449
+//#define DEBUG_LEVELING_FEATURE
450
+#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
450
 
451
 
451
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
452
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
452
 
453
 
453
   // There are 2 different ways to specify probing locations:
454
   // There are 2 different ways to specify probing locations:
454
   //
455
   //
560
   //
561
   //
561
   //#define Z_MIN_PROBE_ENDSTOP
562
   //#define Z_MIN_PROBE_ENDSTOP
562
 
563
 
563
-#endif // ENABLE_AUTO_BED_LEVELING
564
+#endif // AUTO_BED_LEVELING_FEATURE
564
 
565
 
565
 
566
 
566
 // @section homing
567
 // @section homing
611
 // Custom M code points
612
 // Custom M code points
612
 #define CUSTOM_M_CODES
613
 #define CUSTOM_M_CODES
613
 #if ENABLED(CUSTOM_M_CODES)
614
 #if ENABLED(CUSTOM_M_CODES)
614
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
615
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
615
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
616
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
616
     #define Z_PROBE_OFFSET_RANGE_MIN -20
617
     #define Z_PROBE_OFFSET_RANGE_MIN -20
617
     #define Z_PROBE_OFFSET_RANGE_MAX 20
618
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 7
- 5
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

432
 
432
 
433
 // @section bedlevel
433
 // @section bedlevel
434
 
434
 
435
-//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line).
436
-#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z probe repeatability test will be included if auto bed leveling is enabled.
437
 
435
 
438
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
436
+//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
437
+//#define DEBUG_LEVELING_FEATURE
438
+#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
439
+
440
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
439
 
441
 
440
   // There are 2 different ways to specify probing locations:
442
   // There are 2 different ways to specify probing locations:
441
   //
443
   //
547
   //
549
   //
548
   //#define Z_MIN_PROBE_ENDSTOP
550
   //#define Z_MIN_PROBE_ENDSTOP
549
 
551
 
550
-#endif // ENABLE_AUTO_BED_LEVELING
552
+#endif // AUTO_BED_LEVELING_FEATURE
551
 
553
 
552
 
554
 
553
 // @section homing
555
 // @section homing
602
 // Custom M code points
604
 // Custom M code points
603
 #define CUSTOM_M_CODES
605
 #define CUSTOM_M_CODES
604
 #if ENABLED(CUSTOM_M_CODES)
606
 #if ENABLED(CUSTOM_M_CODES)
605
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
607
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
606
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
608
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
607
     #define Z_PROBE_OFFSET_RANGE_MIN -20
609
     #define Z_PROBE_OFFSET_RANGE_MIN -20
608
     #define Z_PROBE_OFFSET_RANGE_MAX 20
610
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 10
- 10
Marlin/planner.cpp View File

77
 float mintravelfeedrate;
77
 float mintravelfeedrate;
78
 unsigned long axis_steps_per_sqr_second[NUM_AXIS];
78
 unsigned long axis_steps_per_sqr_second[NUM_AXIS];
79
 
79
 
80
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
80
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
81
   // Transform required to compensate for bed level
81
   // Transform required to compensate for bed level
82
   matrix_3x3 plan_bed_level_matrix = {
82
   matrix_3x3 plan_bed_level_matrix = {
83
     1.0, 0.0, 0.0,
83
     1.0, 0.0, 0.0,
84
     0.0, 1.0, 0.0,
84
     0.0, 1.0, 0.0,
85
     0.0, 0.0, 1.0
85
     0.0, 0.0, 1.0
86
   };
86
   };
87
-#endif // ENABLE_AUTO_BED_LEVELING
87
+#endif // AUTO_BED_LEVELING_FEATURE
88
 
88
 
89
 #if ENABLED(AUTOTEMP)
89
 #if ENABLED(AUTOTEMP)
90
   float autotemp_max = 250;
90
   float autotemp_max = 250;
474
 // Add a new linear movement to the buffer. steps[X_AXIS], _y and _z is the absolute position in
474
 // Add a new linear movement to the buffer. steps[X_AXIS], _y and _z is the absolute position in
475
 // mm. Microseconds specify how many microseconds the move should take to perform. To aid acceleration
475
 // mm. Microseconds specify how many microseconds the move should take to perform. To aid acceleration
476
 // calculation the caller must also provide the physical length of the line in millimeters.
476
 // calculation the caller must also provide the physical length of the line in millimeters.
477
-#if ENABLED(ENABLE_AUTO_BED_LEVELING) || ENABLED(MESH_BED_LEVELING)
477
+#if ENABLED(AUTO_BED_LEVELING_FEATURE) || ENABLED(MESH_BED_LEVELING)
478
   void plan_buffer_line(float x, float y, float z, const float &e, float feed_rate, const uint8_t extruder)
478
   void plan_buffer_line(float x, float y, float z, const float &e, float feed_rate, const uint8_t extruder)
479
 #else
479
 #else
480
   void plan_buffer_line(const float &x, const float &y, const float &z, const float &e, float feed_rate, const uint8_t extruder)
480
   void plan_buffer_line(const float &x, const float &y, const float &z, const float &e, float feed_rate, const uint8_t extruder)
481
-#endif  // ENABLE_AUTO_BED_LEVELING
481
+#endif  // AUTO_BED_LEVELING_FEATURE
482
 {
482
 {
483
   // Calculate the buffer head after we push this byte
483
   // Calculate the buffer head after we push this byte
484
   int next_buffer_head = next_block_index(block_buffer_head);
484
   int next_buffer_head = next_block_index(block_buffer_head);
489
 
489
 
490
   #if ENABLED(MESH_BED_LEVELING)
490
   #if ENABLED(MESH_BED_LEVELING)
491
     if (mbl.active) z += mbl.get_z(x, y);
491
     if (mbl.active) z += mbl.get_z(x, y);
492
-  #elif ENABLED(ENABLE_AUTO_BED_LEVELING)
492
+  #elif ENABLED(AUTO_BED_LEVELING_FEATURE)
493
     apply_rotation_xyz(plan_bed_level_matrix, x, y, z);
493
     apply_rotation_xyz(plan_bed_level_matrix, x, y, z);
494
   #endif
494
   #endif
495
 
495
 
993
 
993
 
994
 } // plan_buffer_line()
994
 } // plan_buffer_line()
995
 
995
 
996
-#if ENABLED(ENABLE_AUTO_BED_LEVELING) && DISABLED(DELTA)
996
+#if ENABLED(AUTO_BED_LEVELING_FEATURE) && DISABLED(DELTA)
997
   vector_3 plan_get_position() {
997
   vector_3 plan_get_position() {
998
     vector_3 position = vector_3(st_get_position_mm(X_AXIS), st_get_position_mm(Y_AXIS), st_get_position_mm(Z_AXIS));
998
     vector_3 position = vector_3(st_get_position_mm(X_AXIS), st_get_position_mm(Y_AXIS), st_get_position_mm(Z_AXIS));
999
 
999
 
1006
 
1006
 
1007
     return position;
1007
     return position;
1008
   }
1008
   }
1009
-#endif // ENABLE_AUTO_BED_LEVELING && !DELTA
1009
+#endif // AUTO_BED_LEVELING_FEATURE && !DELTA
1010
 
1010
 
1011
-#if ENABLED(ENABLE_AUTO_BED_LEVELING) || ENABLED(MESH_BED_LEVELING)
1011
+#if ENABLED(AUTO_BED_LEVELING_FEATURE) || ENABLED(MESH_BED_LEVELING)
1012
   void plan_set_position(float x, float y, float z, const float &e)
1012
   void plan_set_position(float x, float y, float z, const float &e)
1013
 #else
1013
 #else
1014
   void plan_set_position(const float &x, const float &y, const float &z, const float &e)
1014
   void plan_set_position(const float &x, const float &y, const float &z, const float &e)
1015
-#endif // ENABLE_AUTO_BED_LEVELING || MESH_BED_LEVELING
1015
+#endif // AUTO_BED_LEVELING_FEATURE || MESH_BED_LEVELING
1016
   {
1016
   {
1017
     #if ENABLED(MESH_BED_LEVELING)
1017
     #if ENABLED(MESH_BED_LEVELING)
1018
       if (mbl.active) z += mbl.get_z(x, y);
1018
       if (mbl.active) z += mbl.get_z(x, y);
1019
-    #elif ENABLED(ENABLE_AUTO_BED_LEVELING)
1019
+    #elif ENABLED(AUTO_BED_LEVELING_FEATURE)
1020
       apply_rotation_xyz(plan_bed_level_matrix, x, y, z);
1020
       apply_rotation_xyz(plan_bed_level_matrix, x, y, z);
1021
     #endif
1021
     #endif
1022
 
1022
 

+ 4
- 4
Marlin/planner.h View File

79
 extern volatile unsigned char block_buffer_tail;
79
 extern volatile unsigned char block_buffer_tail;
80
 FORCE_INLINE uint8_t movesplanned() { return BLOCK_MOD(block_buffer_head - block_buffer_tail + BLOCK_BUFFER_SIZE); }
80
 FORCE_INLINE uint8_t movesplanned() { return BLOCK_MOD(block_buffer_head - block_buffer_tail + BLOCK_BUFFER_SIZE); }
81
 
81
 
82
-#if ENABLED(ENABLE_AUTO_BED_LEVELING) || ENABLED(MESH_BED_LEVELING)
82
+#if ENABLED(AUTO_BED_LEVELING_FEATURE) || ENABLED(MESH_BED_LEVELING)
83
 
83
 
84
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
84
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
85
     #include "vector_3.h"
85
     #include "vector_3.h"
86
 
86
 
87
     // Transform required to compensate for bed level
87
     // Transform required to compensate for bed level
91
      * Get the position applying the bed level matrix
91
      * Get the position applying the bed level matrix
92
      */
92
      */
93
     vector_3 plan_get_position();
93
     vector_3 plan_get_position();
94
-  #endif  // ENABLE_AUTO_BED_LEVELING
94
+  #endif  // AUTO_BED_LEVELING_FEATURE
95
 
95
 
96
   /**
96
   /**
97
    * Add a new linear movement to the buffer. x, y, z are the signed, absolute target position in
97
    * Add a new linear movement to the buffer. x, y, z are the signed, absolute target position in
111
   void plan_buffer_line(const float &x, const float &y, const float &z, const float &e, float feed_rate, const uint8_t extruder);
111
   void plan_buffer_line(const float &x, const float &y, const float &z, const float &e, float feed_rate, const uint8_t extruder);
112
   void plan_set_position(const float &x, const float &y, const float &z, const float &e);
112
   void plan_set_position(const float &x, const float &y, const float &z, const float &e);
113
 
113
 
114
-#endif // ENABLE_AUTO_BED_LEVELING || MESH_BED_LEVELING
114
+#endif // AUTO_BED_LEVELING_FEATURE || MESH_BED_LEVELING
115
 
115
 
116
 void plan_set_e_position(const float &e);
116
 void plan_set_e_position(const float &e);
117
 
117
 

+ 2
- 2
Marlin/ultralcd.cpp View File

638
   //
638
   //
639
   // Level Bed
639
   // Level Bed
640
   //
640
   //
641
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
641
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
642
     if (axis_known_position[X_AXIS] && axis_known_position[Y_AXIS])
642
     if (axis_known_position[X_AXIS] && axis_known_position[Y_AXIS])
643
       MENU_ITEM(gcode, MSG_LEVEL_BED, PSTR("G29"));
643
       MENU_ITEM(gcode, MSG_LEVEL_BED, PSTR("G29"));
644
   #elif ENABLED(MANUAL_BED_LEVELING)
644
   #elif ENABLED(MANUAL_BED_LEVELING)
1041
 static void lcd_control_motion_menu() {
1041
 static void lcd_control_motion_menu() {
1042
   START_MENU();
1042
   START_MENU();
1043
   MENU_ITEM(back, MSG_CONTROL, lcd_control_menu);
1043
   MENU_ITEM(back, MSG_CONTROL, lcd_control_menu);
1044
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
1044
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
1045
     MENU_ITEM_EDIT(float32, MSG_ZPROBE_ZOFFSET, &zprobe_zoffset, Z_PROBE_OFFSET_RANGE_MIN, Z_PROBE_OFFSET_RANGE_MAX);
1045
     MENU_ITEM_EDIT(float32, MSG_ZPROBE_ZOFFSET, &zprobe_zoffset, Z_PROBE_OFFSET_RANGE_MIN, Z_PROBE_OFFSET_RANGE_MAX);
1046
   #endif
1046
   #endif
1047
   MENU_ITEM_EDIT(float5, MSG_ACC, &acceleration, 10, 99000);
1047
   MENU_ITEM_EDIT(float5, MSG_ACC, &acceleration, 10, 99000);

+ 2
- 2
Marlin/vector_3.cpp View File

19
 #include <math.h>
19
 #include <math.h>
20
 #include "Marlin.h"
20
 #include "Marlin.h"
21
 
21
 
22
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
22
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
23
 #include "vector_3.h"
23
 #include "vector_3.h"
24
 
24
 
25
 vector_3::vector_3() : x(0), y(0), z(0) { }
25
 vector_3::vector_3() : x(0), y(0), z(0) { }
134
   }
134
   }
135
 }
135
 }
136
 
136
 
137
-#endif // ENABLE_AUTO_BED_LEVELING
137
+#endif // AUTO_BED_LEVELING_FEATURE
138
 
138
 

+ 2
- 2
Marlin/vector_3.h View File

19
 #ifndef VECTOR_3_H
19
 #ifndef VECTOR_3_H
20
 #define VECTOR_3_H
20
 #define VECTOR_3_H
21
 
21
 
22
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
22
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
23
 class matrix_3x3;
23
 class matrix_3x3;
24
 
24
 
25
 struct vector_3
25
 struct vector_3
57
 
57
 
58
 
58
 
59
 void apply_rotation_xyz(matrix_3x3 rotationMatrix, float &x, float& y, float& z);
59
 void apply_rotation_xyz(matrix_3x3 rotationMatrix, float &x, float& y, float& z);
60
-#endif // ENABLE_AUTO_BED_LEVELING
60
+#endif // AUTO_BED_LEVELING_FEATURE
61
 
61
 
62
 #endif // VECTOR_3_H
62
 #endif // VECTOR_3_H

Loading…
Cancel
Save