Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8092cf1

Browse files
committedMar 9, 2023
adjust
1 parent 1be5564 commit 8092cf1

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed
 

‎Marlin/Configuration.h

+2-7
Original file line numberDiff line numberDiff line change
@@ -1387,16 +1387,11 @@
13871387

13881388
/**
13891389
* Z Servo Probe, such as an endstop switch on a rotating arm.
1390-
*
1391-
* The Z_SERVO_MEASURE_ANGLE is only useful if your servo needs to
1392-
* move to a "free" position to allow measuring.
1393-
* With Z_SERVO_INTERMEDIATE_STOW you can have the probe stowed
1394-
* between different points of a G29.
13951390
*/
13961391
//#define Z_PROBE_SERVO_NR 0 // Defaults to SERVO 0 connector.
13971392
//#define Z_SERVO_ANGLES { 70, 0 } // Z Servo Deploy and Stow angles
1398-
//#define Z_SERVO_MEASURE_ANGLE 45 // Z Servo Angle after deploy (to allow measuring)
1399-
//#define Z_SERVO_INTERMEDIATE_STOW // Stow the probe between points
1393+
//#define Z_SERVO_MEASURE_ANGLE 45 // Use if the servo must move to a "free" position for measuring after deploy.
1394+
//#define Z_SERVO_INTERMEDIATE_STOW // Stow the probe between points.
14001395

14011396
/**
14021397
* The BLTouch probe uses a Hall effect sensor and emulates a servo.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ G29_TYPE GcodeSuite::G29() {
491491
if (!no_action) set_bed_leveling_enabled(false);
492492

493493
// Deploy certain probes before starting probing
494-
#if EITHER(BLTOUCH, Z_SERVO_INTERMEDIATE_STOW)
494+
#if ENABLED(BLTOUCH) || BOTH(HAS_Z_SERVO_PROBE, Z_SERVO_INTERMEDIATE_STOW)
495495
do_z_clearance(Z_CLEARANCE_DEPLOY_PROBE);
496496
#elif HAS_BED_PROBE
497497
if (probe.deploy()) { // (returns true on deploy failure)

‎Marlin/src/module/probe.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -587,12 +587,13 @@ bool Probe::probe_down_to_z(const_float_t z, const_feedRate_t fr_mm_s) {
587587
#if BOTH(HAS_TEMP_HOTEND, WAIT_FOR_HOTEND)
588588
thermalManager.wait_for_hotend_heating(active_extruder);
589589
#endif
590+
590591
#if ENABLED(BLTOUCH)
591592
if (!bltouch.high_speed_mode && bltouch.deploy())
592593
return true; // Deploy in LOW SPEED MODE on every probe action
593594
#endif
594595

595-
#if ENABLED(Z_SERVO_INTERMEDIATE_STOW) || defined(Z_SERVO_MEASURE_ANGLE)
596+
#if HAS_Z_SERVO_PROBE && (ENABLED(Z_SERVO_INTERMEDIATE_STOW) || defined(Z_SERVO_MEASURE_ANGLE))
596597
probe_specific_action(true); // Always re-deploy in this case
597598
#endif
598599

@@ -645,7 +646,7 @@ bool Probe::probe_down_to_z(const_float_t z, const_feedRate_t fr_mm_s) {
645646
return true; // Stow in LOW SPEED MODE on every trigger
646647
#endif
647648

648-
#if ENABLED(Z_SERVO_INTERMEDIATE_STOW)
649+
#if BOTH(HAS_Z_SERVO_PROBE, Z_SERVO_INTERMEDIATE_STOW)
649650
probe_specific_action(false); // Always stow
650651
#endif
651652

0 commit comments

Comments
 (0)
Please sign in to comment.