Skip to content

Commit 98e43ca

Browse files
committed
G26: Allow to set retraction for UBL mesh test
1 parent 6e658a7 commit 98e43ca

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Marlin/Configuration.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,7 @@
12101210
#define MESH_TEST_HOTEND_TEMP 205 // (°C) Default nozzle temperature for the G26 Mesh Validation Tool.
12111211
#define MESH_TEST_BED_TEMP 60 // (°C) Default bed temperature for the G26 Mesh Validation Tool.
12121212
#define G26_XY_FEEDRATE 20 // (mm/s) Feedrate for XY Moves for the G26 Mesh Validation Tool.
1213+
#define G26_RETRACT_MULTIPLIER 1.0 // G26 Q (retraction) used by default between mesh test elements.
12131214
#endif
12141215

12151216
#endif

Marlin/src/gcode/bedlevel/G26.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,16 @@
4343
#include "../../lcd/ultralcd.h"
4444

4545
#define EXTRUSION_MULTIPLIER 1.0
46-
#define RETRACTION_MULTIPLIER 1.0
4746
#define PRIME_LENGTH 10.0
4847
#define OOZE_AMOUNT 0.3
4948

5049
#define INTERSECTION_CIRCLE_RADIUS 5
5150
#define CROSSHAIRS_SIZE 3
5251

52+
#ifndef G26_RETRACT_MULTIPLIER
53+
#define G26_RETRACT_MULTIPLIER 1.0 // x 1mm
54+
#endif
55+
5356
#ifndef G26_XY_FEEDRATE
5457
#define G26_XY_FEEDRATE (PLANNER_XY_FEEDRATE() / 3.0)
5558
#endif
@@ -508,7 +511,7 @@ void GcodeSuite::G26() {
508511
if (parser.seenval('T')) tool_change(parser.value_int());
509512

510513
g26_extrusion_multiplier = EXTRUSION_MULTIPLIER;
511-
g26_retraction_multiplier = RETRACTION_MULTIPLIER;
514+
g26_retraction_multiplier = G26_RETRACT_MULTIPLIER;
512515
g26_layer_height = MESH_TEST_LAYER_HEIGHT;
513516
g26_prime_length = PRIME_LENGTH;
514517
g26_bed_temp = MESH_TEST_BED_TEMP;

config/default/Configuration.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,7 @@
12101210
#define MESH_TEST_HOTEND_TEMP 205 // (°C) Default nozzle temperature for the G26 Mesh Validation Tool.
12111211
#define MESH_TEST_BED_TEMP 60 // (°C) Default bed temperature for the G26 Mesh Validation Tool.
12121212
#define G26_XY_FEEDRATE 20 // (mm/s) Feedrate for XY Moves for the G26 Mesh Validation Tool.
1213+
#define G26_RETRACT_MULTIPLIER 1.0 // G26 Q (retraction) used by default between mesh test elements.
12131214
#endif
12141215

12151216
#endif

0 commit comments

Comments
 (0)