|
@ -68,6 +68,8 @@ |
|
|
* |
|
|
* |
|
|
* Enhanced G29 Auto Bed Leveling Probe Routine |
|
|
* Enhanced G29 Auto Bed Leveling Probe Routine |
|
|
* |
|
|
* |
|
|
|
|
|
* O Auto-level only if needed |
|
|
|
|
|
* |
|
|
* D Dry-Run mode. Just evaluate the bed Topology - Don't apply |
|
|
* D Dry-Run mode. Just evaluate the bed Topology - Don't apply |
|
|
* or alter the bed level data. Useful to check the topology |
|
|
* or alter the bed level data. Useful to check the topology |
|
|
* after a first run of G29. |
|
|
* after a first run of G29. |
|
@ -174,6 +176,15 @@ void GcodeSuite::G29() { |
|
|
// Don't allow auto-leveling without homing first
|
|
|
// Don't allow auto-leveling without homing first
|
|
|
if (axis_unhomed_error()) return; |
|
|
if (axis_unhomed_error()) return; |
|
|
|
|
|
|
|
|
|
|
|
if (!no_action && planner.leveling_active && parser.boolval('O')) { // Auto-level only if needed
|
|
|
|
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
|
|
|
if (DEBUGGING(LEVELING)) { |
|
|
|
|
|
SERIAL_ECHOLNPGM("> Auto-level not needed, skip"); |
|
|
|
|
|
SERIAL_ECHOLNPGM("<<< G29"); |
|
|
|
|
|
} |
|
|
|
|
|
#endif |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
// Define local vars 'static' for manual probing, 'auto' otherwise
|
|
|
// Define local vars 'static' for manual probing, 'auto' otherwise
|
|
|
#if ENABLED(PROBE_MANUALLY) |
|
|
#if ENABLED(PROBE_MANUALLY) |
|
|
#define ABL_VAR static |
|
|
#define ABL_VAR static |
|
|