Переглянути джерело

🩹 RAMPS FET order overridable, E + Laser (#23428)

hwmland 2 роки тому
джерело
коміт
90fc120182
Аккаунт користувача з таким Email не знайдено
1 змінених файлів з 22 додано та 18 видалено
  1. 22
    18
      Marlin/src/pins/pins.h

+ 22
- 18
Marlin/src/pins/pins.h Переглянути файл

@@ -37,24 +37,28 @@
37 37
 
38 38
 #define MAX_E_STEPPERS 8
39 39
 
40
-#if   MB(RAMPS_13_EFB, RAMPS_14_EFB, RAMPS_PLUS_EFB, RAMPS_14_RE_ARM_EFB, RAMPS_SMART_EFB, RAMPS_DUO_EFB, RAMPS4DUE_EFB)
41
-  #define FET_ORDER_EFB 1
42
-#elif MB(RAMPS_13_EEB, RAMPS_14_EEB, RAMPS_PLUS_EEB, RAMPS_14_RE_ARM_EEB, RAMPS_SMART_EEB, RAMPS_DUO_EEB, RAMPS4DUE_EEB)
43
-  #define FET_ORDER_EEB 1
44
-#elif MB(RAMPS_13_EFF, RAMPS_14_EFF, RAMPS_PLUS_EFF, RAMPS_14_RE_ARM_EFF, RAMPS_SMART_EFF, RAMPS_DUO_EFF, RAMPS4DUE_EFF)
45
-  #define FET_ORDER_EFF 1
46
-#elif MB(RAMPS_13_EEF, RAMPS_14_EEF, RAMPS_PLUS_EEF, RAMPS_14_RE_ARM_EEF, RAMPS_SMART_EEF, RAMPS_DUO_EEF, RAMPS4DUE_EEF)
47
-  #define FET_ORDER_EEF 1
48
-#elif MB(RAMPS_13_SF,  RAMPS_14_SF,  RAMPS_PLUS_SF,  RAMPS_14_RE_ARM_SF,  RAMPS_SMART_SF,  RAMPS_DUO_SF,  RAMPS4DUE_SF)
49
-  #define FET_ORDER_SF 1
50
-#elif HAS_MULTI_HOTEND && TEMP_SENSOR_BED
51
-  #define FET_ORDER_EEB 1
52
-#elif HAS_MULTI_HOTEND
53
-  #define FET_ORDER_EEF 1
54
-#elif TEMP_SENSOR_BED
55
-  #define FET_ORDER_EFB 1
56
-#else
57
-  #define FET_ORDER_EFF 1
40
+#if NONE(FET_ORDER_EEF, FET_ORDER_EEB, FET_ORDER_EFF, FET_ORDER_EFB, FET_ORDER_SF)
41
+  #if   MB(RAMPS_13_EFB, RAMPS_14_EFB, RAMPS_PLUS_EFB, RAMPS_14_RE_ARM_EFB, RAMPS_SMART_EFB, RAMPS_DUO_EFB, RAMPS4DUE_EFB)
42
+    #define FET_ORDER_EFB 1
43
+  #elif MB(RAMPS_13_EEB, RAMPS_14_EEB, RAMPS_PLUS_EEB, RAMPS_14_RE_ARM_EEB, RAMPS_SMART_EEB, RAMPS_DUO_EEB, RAMPS4DUE_EEB)
44
+    #define FET_ORDER_EEB 1
45
+  #elif MB(RAMPS_13_EFF, RAMPS_14_EFF, RAMPS_PLUS_EFF, RAMPS_14_RE_ARM_EFF, RAMPS_SMART_EFF, RAMPS_DUO_EFF, RAMPS4DUE_EFF)
46
+    #define FET_ORDER_EFF 1
47
+  #elif MB(RAMPS_13_EEF, RAMPS_14_EEF, RAMPS_PLUS_EEF, RAMPS_14_RE_ARM_EEF, RAMPS_SMART_EEF, RAMPS_DUO_EEF, RAMPS4DUE_EEF)
48
+    #define FET_ORDER_EEF 1
49
+  #elif MB(RAMPS_13_SF,  RAMPS_14_SF,  RAMPS_PLUS_SF,  RAMPS_14_RE_ARM_SF,  RAMPS_SMART_SF,  RAMPS_DUO_SF,  RAMPS4DUE_SF)
50
+    #define FET_ORDER_SF 1
51
+  #elif HAS_MULTI_HOTEND || (HAS_EXTRUDERS && HAS_CUTTER)
52
+    #if TEMP_SENSOR_BED
53
+      #define FET_ORDER_EEB 1
54
+    #else
55
+      #define FET_ORDER_EEF 1
56
+    #endif
57
+  #elif TEMP_SENSOR_BED
58
+    #define FET_ORDER_EFB 1
59
+  #else
60
+    #define FET_ORDER_EFF 1
61
+  #endif
58 62
 #endif
59 63
 
60 64
 #if !(BOTH(IS_ULTRA_LCD, IS_NEWPANEL) && ANY(PANEL_ONE, VIKI2, miniVIKI, WYH_L12864, MINIPANEL, REPRAPWORLD_KEYPAD))

Завантаження…
Відмінити
Зберегти