瀏覽代碼

Patch BLTouch Z_MAX_PIN for GT2560 Rev.A (non-plus) (#17721)

Warboy1982 4 年之前
父節點
當前提交
7eac76d31b
No account linked to committer's email address
共有 2 個文件被更改,包括 12 次插入4 次删除
  1. 11
    1
      Marlin/src/pins/mega/pins_GT2560_REV_A.h
  2. 1
    3
      Marlin/src/pins/mega/pins_GT2560_REV_A_PLUS.h

+ 11
- 1
Marlin/src/pins/mega/pins_GT2560_REV_A.h 查看文件

@@ -44,7 +44,17 @@
44 44
 #define Y_MIN_PIN                             26
45 45
 #define Y_MAX_PIN                             28
46 46
 #define Z_MIN_PIN                             30
47
-#define Z_MAX_PIN                             32
47
+
48
+#if ENABLED(BLTOUCH)
49
+  #if MB(GT2560_REV_A_PLUS)
50
+    #define SERVO0_PIN                        11
51
+  #else
52
+    #define SERVO0_PIN                        32
53
+  #endif
54
+  #define Z_MAX_PIN                           -1
55
+#else
56
+  #define Z_MAX_PIN                           32
57
+#endif
48 58
 
49 59
 //
50 60
 // Steppers

+ 1
- 3
Marlin/src/pins/mega/pins_GT2560_REV_A_PLUS.h 查看文件

@@ -29,8 +29,6 @@
29 29
 
30 30
 #include "pins_GT2560_REV_A.h"
31 31
 
32
-#if ENABLED(BLTOUCH)
33
-  #define SERVO0_PIN  11
34
-#else
32
+#if DISABLED(BLTOUCH)
35 33
   #define SERVO0_PIN  32
36 34
 #endif

Loading…
取消
儲存