Skip to content

Commit f4eafed

Browse files
committed
🔧 Z_PROBE_END_SCRIPT => EVENT_GCODE_AFTER_G29
1 parent 5987a54 commit f4eafed

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

Marlin/Configuration.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2032,7 +2032,7 @@
20322032
* Commands to execute at the end of G29 probing.
20332033
* Useful to retract or move the Z probe out of the way.
20342034
*/
2035-
//#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10"
2035+
//#define EVENT_GCODE_AFTER_G29 "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10"
20362036

20372037
/**
20382038
* Normally G28 leaves leveling disabled on completion. Enable one of

Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -681,11 +681,11 @@ void unified_bed_leveling::G29() {
681681
ui.release();
682682
#endif
683683

684-
#ifdef Z_PROBE_END_SCRIPT
685-
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("Z Probe End Script: ", Z_PROBE_END_SCRIPT);
684+
#ifdef EVENT_GCODE_AFTER_G29
685+
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("Z Probe End Script: ", EVENT_GCODE_AFTER_G29);
686686
if (probe_deployed) {
687687
planner.synchronize();
688-
gcode.process_subcommands_now(F(Z_PROBE_END_SCRIPT));
688+
gcode.process_subcommands_now(F(EVENT_GCODE_AFTER_G29));
689689
}
690690
#else
691691
UNUSED(probe_deployed);

Marlin/src/gcode/bedlevel/abl/G29.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -987,10 +987,10 @@ G29_TYPE GcodeSuite::G29() {
987987

988988
TERN_(HAS_BED_PROBE, probe.move_z_after_probing());
989989

990-
#ifdef Z_PROBE_END_SCRIPT
991-
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("Z Probe End Script: ", Z_PROBE_END_SCRIPT);
990+
#ifdef EVENT_GCODE_AFTER_G29
991+
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("Z Probe End Script: ", EVENT_GCODE_AFTER_G29);
992992
planner.synchronize();
993-
process_subcommands_now(F(Z_PROBE_END_SCRIPT));
993+
process_subcommands_now(F(EVENT_GCODE_AFTER_G29));
994994
#endif
995995

996996
probe.use_probing_tool(false);

Marlin/src/inc/Changes.h

+2
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,8 @@
685685
#error "SDIO_SUPPORT is now ONBOARD_SDIO."
686686
#elif defined(ANET_FULL_GRAPHICS_LCD_ALT_WIRING)
687687
#error "ANET_FULL_GRAPHICS_LCD_ALT_WIRING is now CTC_A10S_A13."
688+
#elif defined(Z_PROBE_END_SCRIPT)
689+
#error "Z_PROBE_END_SCRIPT is now EVENT_GCODE_AFTER_G29."
688690
#endif
689691

690692
// Changes to Probe Temp Compensation (#17392)

buildroot/tests/mega2560

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ opt_disable X_DRIVER_TYPE Y_DRIVER_TYPE Z_DRIVER_TYPE
8787
exec_test $1 $2 "E Axis Only | DOGM MarlinUI" "$3"
8888

8989
#
90-
# Mixing Extruder with 5 steppers, Greek
90+
# Mixing Extruder with 5 steppers, Russian
9191
#
9292
restore_configs
9393
opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO MIXING_STEPPERS 5 LCD_LANGUAGE ru \
@@ -98,7 +98,7 @@ opt_enable MIXING_EXTRUDER GRADIENT_MIX GRADIENT_VTOOL CR10_STOCKDISPLAY \
9898
XY_AFTER_HOMING EVENT_GCODE_AFTER_HOMING \
9999
FILAMENT_RUNOUT_SENSOR ADVANCED_PAUSE_FEATURE NOZZLE_PARK_FEATURE INPUT_SHAPING_X INPUT_SHAPING_Y
100100
opt_disable DISABLE_OTHER_EXTRUDERS
101-
exec_test $1 $2 "Azteeg X3 | Mixing Extruder (x5) | Gradient Mix | Input Shaping | Greek" "$3"
101+
exec_test $1 $2 "Azteeg X3 | Mixing Extruder (x5) | Gradient Mix | Input Shaping | Russian" "$3"
102102

103103
#
104104
# Test SPEAKER with BOARD_BQ_ZUM_MEGA_3D and BQ_LCD_SMART_CONTROLLER

0 commit comments

Comments
 (0)