🚸 BD Sensor Z axis stop height (#26015)

This commit is contained in:
Mark
2023-08-07 12:33:20 +08:00
committed by GitHub
parent 205a679959
commit ffef8f1b29
5 changed files with 27 additions and 13 deletions

View File

@@ -2479,7 +2479,12 @@ void set_axis_is_at_home(const AxisEnum axis) {
#if HAS_BED_PROBE && Z_HOME_TO_MIN
if (axis == Z_AXIS) {
#if HOMING_Z_WITH_PROBE
current_position.z -= probe.offset.z;
#if ENABLED(BD_SENSOR)
safe_delay(100);
current_position.z = bdl.read();
#else
current_position.z -= probe.offset.z;
#endif
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("*** Z homed with PROBE" TERN_(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN, " (Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)") " ***\n> (M851 Z", probe.offset.z, ")");
#else
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("*** Z homed to ENDSTOP ***");