瀏覽代碼

Allow SERVO0_PIN override on Creality Melzi (#21007)

Alexander D. Kanevskiy 4 年之前
父節點
當前提交
24e18a9fbd
No account linked to committer's email address
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6
    2
      Marlin/src/pins/sanguino/pins_MELZI_CREALITY.h

+ 6
- 2
Marlin/src/pins/sanguino/pins_MELZI_CREALITY.h 查看文件

@@ -68,8 +68,12 @@
68 68
 #define LCD_PINS_D4                           30  // ST9720 CLK
69 69
 
70 70
 #if ENABLED(BLTOUCH)
71
-  #define SERVO0_PIN                          27
72
-  #undef BEEPER_PIN
71
+  #ifndef SERVO0_PIN
72
+    #define SERVO0_PIN                        27
73
+  #endif
74
+  #if SERVO0_PIN == BEEPER_PIN
75
+    #undef BEEPER_PIN
76
+  #endif
73 77
 #elif ENABLED(FILAMENT_RUNOUT_SENSOR)
74 78
   #ifndef FIL_RUNOUT_PIN
75 79
     #define FIL_RUNOUT_PIN                    27

Loading…
取消
儲存