Browse Source

Merge tag debug_G29 (PR#54)

Richard Wackerbarth 9 years ago
parent
commit
109628a77e

+ 2
- 2
Marlin/Conditionals.h View File

@@ -279,7 +279,7 @@
279 279
   /**
280 280
    * Auto Bed Leveling
281 281
    */
282
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
282
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
283 283
     // Boundaries for probing based on set limits
284 284
     #define MIN_PROBE_X (max(X_MIN_POS, X_MIN_POS + X_PROBE_OFFSET_FROM_EXTRUDER))
285 285
     #define MAX_PROBE_X (min(X_MAX_POS, X_MAX_POS + X_PROBE_OFFSET_FROM_EXTRUDER))
@@ -287,7 +287,7 @@
287 287
     #define MAX_PROBE_Y (min(Y_MAX_POS, Y_MAX_POS + Y_PROBE_OFFSET_FROM_EXTRUDER))
288 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 293
     * Sled Options

+ 9
- 7
Marlin/Configuration.h View File

@@ -442,10 +442,11 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
442 442
 
443 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 451
   // There are 2 different ways to specify probing locations:
451 452
   //
@@ -509,8 +510,9 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
509 510
   //#define Z_PROBE_SLED // Turn on if you have a Z probe mounted on a sled like those designed by Charles Bell.
510 511
   //#define SLED_DOCKING_OFFSET 5 // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
511 512
 
512
-// If you have enabled the bed auto leveling and are using the same Z probe for Z homing,
513
-// it is highly recommended you let this Z_SAFE_HOMING enabled!!!
513
+
514
+  //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
515
+  //it is highly recommended you let this Z_SAFE_HOMING enabled!!!
514 516
 
515 517
   #define Z_SAFE_HOMING   // This feature is meant to avoid Z homing with Z probe outside the bed area.
516 518
                           // When defined, it will:
@@ -557,7 +559,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
557 559
   //
558 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 565
 // @section homing
@@ -608,7 +610,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
608 610
 // Custom M code points
609 611
 #define CUSTOM_M_CODES
610 612
 #if ENABLED(CUSTOM_M_CODES)
611
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
613
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
612 614
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
613 615
     #define Z_PROBE_OFFSET_RANGE_MIN -20
614 616
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 4
- 3
Marlin/Marlin.h View File

@@ -221,7 +221,8 @@ enum DebugFlags {
221 221
   DEBUG_INFO          = BIT(1),
222 222
   DEBUG_ERRORS        = BIT(2),
223 223
   DEBUG_DRYRUN        = BIT(3),
224
-  DEBUG_COMMUNICATION = BIT(4)
224
+  DEBUG_COMMUNICATION = BIT(4),
225
+  DEBUG_LEVELING      = BIT(5)
225 226
 };
226 227
 extern uint8_t marlin_debug_flags;
227 228
 
@@ -268,7 +269,7 @@ extern bool axis_known_position[3]; // axis[n].is_known
268 269
     extern float delta_diagonal_rod;
269 270
     extern float delta_segments_per_second;
270 271
     void recalc_delta_settings(float radius, float diagonal_rod);
271
-    #if ENABLED(ENABLE_AUTO_BED_LEVELING)
272
+    #if ENABLED(AUTO_BED_LEVELING_FEATURE)
272 273
       extern int delta_grid_spacing[2];
273 274
       void adjust_delta(float cartesian[3]);
274 275
     #endif
@@ -282,7 +283,7 @@ extern bool axis_known_position[3]; // axis[n].is_known
282 283
   extern float z_endstop_adj;
283 284
 #endif
284 285
 
285
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
286
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
286 287
   extern float zprobe_zoffset;
287 288
 #endif
288 289
 

+ 553
- 121
Marlin/Marlin_main.cpp
File diff suppressed because it is too large
View File


+ 8
- 6
Marlin/SanityCheck.h View File

@@ -116,8 +116,8 @@
116 116
     #if ENABLED(DELTA)
117 117
       #error MESH_BED_LEVELING does not yet support DELTA printers.
118 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 121
     #endif
122 122
     #if MESH_NUM_X_POINTS > 7 || MESH_NUM_Y_POINTS > 7
123 123
       #error MESH_NUM_X_POINTS and MESH_NUM_Y_POINTS need to be less than 8.
@@ -127,7 +127,7 @@
127 127
   /**
128 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 133
      * Require a Z min pin
@@ -137,7 +137,7 @@
137 137
         #if ENABLED(Z_MIN_PROBE_REPEATABILITY_TEST)
138 138
           #error You must have a Z min or Z probe endstop to enable Z_MIN_PROBE_REPEATABILITY_TEST.
139 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 141
         #endif
142 142
       #endif
143 143
     #endif
@@ -207,7 +207,7 @@
207 207
 
208 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 213
    * ULTIPANEL encoder
@@ -221,7 +221,7 @@
221 221
    */
222 222
   #if ENABLED(DELTA)
223 223
 
224
-    #if ENABLED(ENABLE_AUTO_BED_LEVELING)
224
+    #if ENABLED(AUTO_BED_LEVELING_FEATURE)
225 225
 
226 226
       #if DISABLED(AUTO_BED_LEVELING_GRID)
227 227
         #error Only AUTO_BED_LEVELING_GRID is supported with DELTA.
@@ -362,6 +362,8 @@
362 362
     #error CUSTOM_MENDEL_NAME is now CUSTOM_MACHINE_NAME. Please update your configuration.
363 363
   #elif defined(HAS_AUTOMATIC_VERSIONING)
364 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 367
   #endif
366 368
 
367 369
 #endif //SANITYCHECK_H

+ 4
- 4
Marlin/configuration_store.cpp View File

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

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

@@ -442,10 +442,11 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
442 442
 
443 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 451
   // There are 2 different ways to specify probing locations:
451 452
   //
@@ -557,7 +558,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
557 558
   //
558 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 564
 // @section homing
@@ -608,7 +609,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
608 609
 // Custom M code points
609 610
 #define CUSTOM_M_CODES
610 611
 #if ENABLED(CUSTOM_M_CODES)
611
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
612
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
612 613
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
613 614
     #define Z_PROBE_OFFSET_RANGE_MIN -20
614 615
     #define Z_PROBE_OFFSET_RANGE_MAX 20

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

@@ -424,10 +424,11 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
424 424
 
425 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 433
   // There are 2 different ways to specify probing locations:
433 434
   //
@@ -539,7 +540,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
539 540
   //
540 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 546
 // @section homing
@@ -591,7 +592,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
591 592
 // Custom M code points
592 593
 #define CUSTOM_M_CODES
593 594
 #if ENABLED(CUSTOM_M_CODES)
594
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
595
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
595 596
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
596 597
     #define Z_PROBE_OFFSET_RANGE_MIN -20
597 598
     #define Z_PROBE_OFFSET_RANGE_MAX 20

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

@@ -394,10 +394,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
394 394
 
395 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 404
   // There are 2 different ways to specify probing locations:
403 405
   //
@@ -509,7 +511,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
509 511
   //
510 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 517
 // The position of the homing switches
@@ -561,7 +563,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
561 563
 // Custom M code points
562 564
 #define CUSTOM_M_CODES
563 565
 #if ENABLED(CUSTOM_M_CODES)
564
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
566
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
565 567
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
566 568
     #define Z_PROBE_OFFSET_RANGE_MIN -20
567 569
     #define Z_PROBE_OFFSET_RANGE_MAX 20

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

@@ -434,10 +434,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
434 434
 
435 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 444
   // There are 2 different ways to specify probing locations:
443 445
   //
@@ -549,7 +551,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
549 551
   //
550 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 557
 // @section homing
@@ -600,7 +602,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
600 602
 // Custom M code points
601 603
 #define CUSTOM_M_CODES
602 604
 #if ENABLED(CUSTOM_M_CODES)
603
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
605
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
604 606
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
605 607
     #define Z_PROBE_OFFSET_RANGE_MIN -20
606 608
     #define Z_PROBE_OFFSET_RANGE_MAX 20

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

@@ -430,10 +430,11 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
430 430
 
431 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 439
   // There are 2 different ways to specify probing locations:
439 440
   //
@@ -545,7 +546,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
545 546
   //
546 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 552
 // @section homing
@@ -596,7 +597,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
596 597
 // Custom M code points
597 598
 #define CUSTOM_M_CODES
598 599
 #if ENABLED(CUSTOM_M_CODES)
599
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
600
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
600 601
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
601 602
     #define Z_PROBE_OFFSET_RANGE_MIN -20
602 603
     #define Z_PROBE_OFFSET_RANGE_MAX 20

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

@@ -442,10 +442,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
442 442
 
443 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 452
   // There are 2 different ways to specify probing locations:
451 453
   //
@@ -557,7 +559,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
557 559
   //
558 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 565
 // @section homing
@@ -608,7 +610,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
608 610
 // Custom M code points
609 611
 #define CUSTOM_M_CODES
610 612
 #if ENABLED(CUSTOM_M_CODES)
611
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
613
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
612 614
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
613 615
     #define Z_PROBE_OFFSET_RANGE_MIN -20
614 616
     #define Z_PROBE_OFFSET_RANGE_MAX 20

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

@@ -428,10 +428,11 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
428 428
 
429 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 437
   // There are 2 different ways to specify probing locations:
437 438
   //
@@ -543,7 +544,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
543 544
   //
544 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 550
 // @section homing
@@ -595,7 +596,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
595 596
 // Custom M code points
596 597
 #define CUSTOM_M_CODES
597 598
 #if ENABLED(CUSTOM_M_CODES)
598
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
599
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
599 600
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
600 601
     #define Z_PROBE_OFFSET_RANGE_MIN -20
601 602
     #define Z_PROBE_OFFSET_RANGE_MAX 20

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

@@ -450,10 +450,11 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
450 450
 
451 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 459
   // There are 2 different ways to specify probing locations:
459 460
   //
@@ -565,7 +566,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
565 566
   //
566 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 572
 // @section homing
@@ -616,7 +617,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
616 617
 // Custom M code points
617 618
 //#define CUSTOM_M_CODES
618 619
 #if ENABLED(CUSTOM_M_CODES)
619
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
620
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
620 621
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
621 622
     #define Z_PROBE_OFFSET_RANGE_MIN -20
622 623
     #define Z_PROBE_OFFSET_RANGE_MAX 20

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

@@ -434,10 +434,11 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
434 434
 
435 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 443
   // There are 2 different ways to specify probing locations:
443 444
   //
@@ -549,7 +550,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
549 550
   //
550 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 556
 // @section homing
@@ -600,7 +601,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
600 601
 // Custom M code points
601 602
 #define CUSTOM_M_CODES
602 603
 #if ENABLED(CUSTOM_M_CODES)
603
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
604
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
604 605
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
605 606
     #define Z_PROBE_OFFSET_RANGE_MIN -20
606 607
     #define Z_PROBE_OFFSET_RANGE_MAX 20

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

@@ -442,10 +442,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
442 442
 
443 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 452
   // There are 2 different ways to specify probing locations:
451 453
   //
@@ -557,7 +559,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
557 559
   //
558 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 565
 // @section homing
@@ -608,7 +610,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
608 610
 // Custom M code points
609 611
 #define CUSTOM_M_CODES
610 612
 #if ENABLED(CUSTOM_M_CODES)
611
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
613
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
612 614
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
613 615
     #define Z_PROBE_OFFSET_RANGE_MIN -20
614 616
     #define Z_PROBE_OFFSET_RANGE_MAX 20

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

@@ -477,10 +477,11 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
477 477
 
478 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 486
   // There are 2 different ways to specify probing locations:
486 487
   //
@@ -677,7 +678,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
677 678
   //
678 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 684
 // @section homing
@@ -728,7 +729,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
728 729
 // Custom M code points
729 730
 #define CUSTOM_M_CODES
730 731
 #if ENABLED(CUSTOM_M_CODES)
731
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
732
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
732 733
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
733 734
     #define Z_PROBE_OFFSET_RANGE_MIN -20
734 735
     #define Z_PROBE_OFFSET_RANGE_MAX 20

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

@@ -477,10 +477,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
477 477
 
478 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 487
   // There are 2 different ways to specify probing locations.
486 488
   //
@@ -677,7 +679,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
677 679
   //
678 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 685
 // @section homing
@@ -728,7 +730,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
728 730
 // Custom M code points
729 731
 #define CUSTOM_M_CODES
730 732
 #if ENABLED(CUSTOM_M_CODES)
731
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
733
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
732 734
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
733 735
     #define Z_PROBE_OFFSET_RANGE_MIN -20
734 736
     #define Z_PROBE_OFFSET_RANGE_MAX 20

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

@@ -477,10 +477,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
477 477
 
478 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 487
   // There are 2 different ways to specify probing locations:
486 488
   //
@@ -681,7 +683,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
681 683
   //
682 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 689
 // @section homing
@@ -732,7 +734,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
732 734
 // Custom M code points
733 735
 #define CUSTOM_M_CODES
734 736
 #if ENABLED(CUSTOM_M_CODES)
735
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
737
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
736 738
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
737 739
     #define Z_PROBE_OFFSET_RANGE_MIN -20
738 740
     #define Z_PROBE_OFFSET_RANGE_MAX 20

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

@@ -464,10 +464,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
464 464
 
465 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 474
   // There are 2 different ways to specify probing locations:
473 475
   //
@@ -666,7 +668,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
666 668
   //
667 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 674
 // @section homing
@@ -727,7 +729,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
727 729
 // Custom M code points
728 730
 #define CUSTOM_M_CODES
729 731
 #if ENABLED(CUSTOM_M_CODES)
730
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
732
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
731 733
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
732 734
     #define Z_PROBE_OFFSET_RANGE_MIN -15
733 735
     #define Z_PROBE_OFFSET_RANGE_MAX -5

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

@@ -445,10 +445,11 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
445 445
 
446 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 454
   // There are 2 different ways to specify probing locations:
454 455
   //
@@ -560,7 +561,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
560 561
   //
561 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 567
 // @section homing
@@ -611,7 +612,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
611 612
 // Custom M code points
612 613
 #define CUSTOM_M_CODES
613 614
 #if ENABLED(CUSTOM_M_CODES)
614
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
615
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
615 616
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
616 617
     #define Z_PROBE_OFFSET_RANGE_MIN -20
617 618
     #define Z_PROBE_OFFSET_RANGE_MAX 20

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

@@ -432,10 +432,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
432 432
 
433 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 442
   // There are 2 different ways to specify probing locations:
441 443
   //
@@ -547,7 +549,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
547 549
   //
548 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 555
 // @section homing
@@ -602,7 +604,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
602 604
 // Custom M code points
603 605
 #define CUSTOM_M_CODES
604 606
 #if ENABLED(CUSTOM_M_CODES)
605
-  #if ENABLED(ENABLE_AUTO_BED_LEVELING)
607
+  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
606 608
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
607 609
     #define Z_PROBE_OFFSET_RANGE_MIN -20
608 610
     #define Z_PROBE_OFFSET_RANGE_MAX 20

+ 1
- 0
Marlin/language.h View File

@@ -214,6 +214,7 @@
214 214
 #define MSG_DEBUG_INFO                      "DEBUG INFO ENABLED"
215 215
 #define MSG_DEBUG_ERRORS                    "DEBUG ERRORS ENABLED"
216 216
 #define MSG_DEBUG_DRYRUN                    "DEBUG DRYRUN ENABLED"
217
+#define MSG_DEBUG_LEVELING                  "DEBUG LEVELING ENABLED"
217 218
 
218 219
 // LCD Menu Messages
219 220
 

+ 10
- 10
Marlin/planner.cpp View File

@@ -77,14 +77,14 @@ float max_e_jerk;
77 77
 float mintravelfeedrate;
78 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 81
   // Transform required to compensate for bed level
82 82
   matrix_3x3 plan_bed_level_matrix = {
83 83
     1.0, 0.0, 0.0,
84 84
     0.0, 1.0, 0.0,
85 85
     0.0, 0.0, 1.0
86 86
   };
87
-#endif // ENABLE_AUTO_BED_LEVELING
87
+#endif // AUTO_BED_LEVELING_FEATURE
88 88
 
89 89
 #if ENABLED(AUTOTEMP)
90 90
   float autotemp_max = 250;
@@ -474,11 +474,11 @@ float junction_deviation = 0.1;
474 474
 // Add a new linear movement to the buffer. steps[X_AXIS], _y and _z is the absolute position in
475 475
 // mm. Microseconds specify how many microseconds the move should take to perform. To aid acceleration
476 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 478
   void plan_buffer_line(float x, float y, float z, const float &e, float feed_rate, const uint8_t extruder)
479 479
 #else
480 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 483
   // Calculate the buffer head after we push this byte
484 484
   int next_buffer_head = next_block_index(block_buffer_head);
@@ -489,7 +489,7 @@ float junction_deviation = 0.1;
489 489
 
490 490
   #if ENABLED(MESH_BED_LEVELING)
491 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 493
     apply_rotation_xyz(plan_bed_level_matrix, x, y, z);
494 494
   #endif
495 495
 
@@ -993,7 +993,7 @@ float junction_deviation = 0.1;
993 993
 
994 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 997
   vector_3 plan_get_position() {
998 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,17 +1006,17 @@ float junction_deviation = 0.1;
1006 1006
 
1007 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 1012
   void plan_set_position(float x, float y, float z, const float &e)
1013 1013
 #else
1014 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 1017
     #if ENABLED(MESH_BED_LEVELING)
1018 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 1020
       apply_rotation_xyz(plan_bed_level_matrix, x, y, z);
1021 1021
     #endif
1022 1022
 

+ 4
- 4
Marlin/planner.h View File

@@ -79,9 +79,9 @@ extern volatile unsigned char block_buffer_head;
79 79
 extern volatile unsigned char block_buffer_tail;
80 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 85
     #include "vector_3.h"
86 86
 
87 87
     // Transform required to compensate for bed level
@@ -91,7 +91,7 @@ FORCE_INLINE uint8_t movesplanned() { return BLOCK_MOD(block_buffer_head - block
91 91
      * Get the position applying the bed level matrix
92 92
      */
93 93
     vector_3 plan_get_position();
94
-  #endif  // ENABLE_AUTO_BED_LEVELING
94
+  #endif  // AUTO_BED_LEVELING_FEATURE
95 95
 
96 96
   /**
97 97
    * Add a new linear movement to the buffer. x, y, z are the signed, absolute target position in
@@ -111,7 +111,7 @@ FORCE_INLINE uint8_t movesplanned() { return BLOCK_MOD(block_buffer_head - block
111 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 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 116
 void plan_set_e_position(const float &e);
117 117
 

+ 2
- 2
Marlin/ultralcd.cpp View File

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

+ 2
- 2
Marlin/vector_3.cpp View File

@@ -19,7 +19,7 @@
19 19
 #include <math.h>
20 20
 #include "Marlin.h"
21 21
 
22
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
22
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
23 23
 #include "vector_3.h"
24 24
 
25 25
 vector_3::vector_3() : x(0), y(0), z(0) { }
@@ -134,5 +134,5 @@ void matrix_3x3::debug(const char title[]) {
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,7 +19,7 @@
19 19
 #ifndef VECTOR_3_H
20 20
 #define VECTOR_3_H
21 21
 
22
-#if ENABLED(ENABLE_AUTO_BED_LEVELING)
22
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
23 23
 class matrix_3x3;
24 24
 
25 25
 struct vector_3
@@ -57,6 +57,6 @@ struct matrix_3x3
57 57
 
58 58
 
59 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 62
 #endif // VECTOR_3_H

Loading…
Cancel
Save