瀏覽代碼

Revert recent probe changes

- Revert "Fix FIX_MOUNTED_PROBE compile error (#14393)"
- Revert "Fix G28 with non-BLTouch probes (#14381)"
- Revert "Fix BLTOUCH deploy/stow in HS mode (#14352)"
- Revert "Apply needed BLTouch patch (#14233)"

Co-Authored-By: AnHardt <github@kitelab.de>
Scott Lahteine 5 年之前
父節點
當前提交
2580104c8b
共有 2 個文件被更改,包括 18 次插入12 次删除
  1. 8
    6
      Marlin/src/gcode/calibrate/G28.cpp
  2. 10
    6
      Marlin/src/module/probe.cpp

+ 8
- 6
Marlin/src/gcode/calibrate/G28.cpp 查看文件

@@ -39,9 +39,12 @@
39 39
   #include "../../feature/tmc_util.h"
40 40
 #endif
41 41
 
42
-#if HAS_BED_PROBE
42
+#if HOMING_Z_WITH_PROBE || ENABLED(BLTOUCH)
43 43
   #include "../../module/probe.h"
44
-  #define STOW_PROBE_BEFORE_HOMING NONE(Z_PROBE_ALLEN_KEY, Z_PROBE_SLED)
44
+#endif
45
+
46
+#if ENABLED(BLTOUCH)
47
+  #include "../../feature/bltouch.h"
45 48
 #endif
46 49
 
47 50
 #include "../../lcd/ultralcd.h"
@@ -255,10 +258,6 @@ void GcodeSuite::G28(const bool always_home_all) {
255 258
 
256 259
     set_destination_from_current();
257 260
 
258
-    #if STOW_PROBE_BEFORE_HOMING
259
-      STOW_PROBE();
260
-    #endif
261
-
262 261
     #if Z_HOME_DIR > 0  // If homing away from BED do Z first
263 262
 
264 263
       if (doZ) homeaxis(Z_AXIS);
@@ -338,6 +337,9 @@ void GcodeSuite::G28(const bool always_home_all) {
338 337
     // Home Z last if homing towards the bed
339 338
     #if Z_HOME_DIR < 0
340 339
       if (doZ) {
340
+        #if ENABLED(BLTOUCH)
341
+          bltouch.init();
342
+        #endif
341 343
         #if ENABLED(Z_SAFE_HOMING)
342 344
           home_z_safely();
343 345
         #else

+ 10
- 6
Marlin/src/module/probe.cpp 查看文件

@@ -376,13 +376,15 @@ FORCE_INLINE void probe_specific_action(const bool deploy) {
376 376
 
377 377
     dock_sled(!deploy);
378 378
 
379
-  #elif ENABLED(BLTOUCH)
380
-
381
-    deploy ? bltouch.deploy() : bltouch.stow();
382
-
383 379
   #elif HAS_Z_SERVO_PROBE
384 380
 
385
-    MOVE_SERVO(Z_PROBE_SERVO_NR, servo_angles[Z_PROBE_SERVO_NR][deploy ? 0 : 1]);
381
+    #if DISABLED(BLTOUCH)
382
+      MOVE_SERVO(Z_PROBE_SERVO_NR, servo_angles[Z_PROBE_SERVO_NR][deploy ? 0 : 1]);
383
+    #elif ENABLED(BLTOUCH_HS_MODE)
384
+      // In HIGH SPEED MODE, use the normal retractable probe logic in this code
385
+      // i.e. no intermediate STOWs and DEPLOYs in between individual probe actions
386
+      if (deploy) bltouch.deploy(); else bltouch.stow();
387
+    #endif
386 388
 
387 389
   #elif EITHER(TOUCH_MI_PROBE, Z_PROBE_ALLEN_KEY)
388 390
 
@@ -445,12 +447,14 @@ bool set_probe_deployed(const bool deploy) {
445 447
               oldYpos = current_position[Y_AXIS];
446 448
 
447 449
   #if ENABLED(PROBE_TRIGGERED_WHEN_STOWED_TEST)
448
-
449 450
     #if USES_Z_MIN_PROBE_ENDSTOP
450 451
       #define PROBE_STOWED() (READ(Z_MIN_PROBE_PIN) != Z_MIN_PROBE_ENDSTOP_INVERTING)
451 452
     #else
452 453
       #define PROBE_STOWED() (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING)
453 454
     #endif
455
+  #endif
456
+
457
+  #ifdef PROBE_STOWED
454 458
 
455 459
     // Only deploy/stow if needed
456 460
     if (PROBE_STOWED() == deploy) {

Loading…
取消
儲存