Sfoglia il codice sorgente

Add chamber to sensitive pins

Scott Lahteine 5 anni fa
parent
commit
1c43870cec
1 ha cambiato i file con 19 aggiunte e 8 eliminazioni
  1. 19
    8
      Marlin/src/pins/sensitive_pins.h

+ 19
- 8
Marlin/src/pins/sensitive_pins.h Vedi File

@@ -456,12 +456,6 @@
456 456
   #endif // HOTENDS > 1
457 457
 #endif // HOTENDS
458 458
 
459
-#define _BED_PINS
460
-#if PIN_EXISTS(HEATER_BED) && PIN_EXISTS(TEMP_BED)
461
-  #undef _BED_PINS
462
-  #define _BED_PINS HEATER_BED_PIN, analogInputToDigitalPin(TEMP_BED_PIN),
463
-#endif
464
-
465 459
 //
466 460
 // Dual X, Dual Y, Multi-Z
467 461
 // Chip Select and Digital Micro-stepping
@@ -666,14 +660,31 @@
666 660
   #define _FANC
667 661
 #endif
668 662
 
663
+#if PIN_EXISTS(HEATER_BED) && PIN_EXISTS(TEMP_BED)
664
+  #define _BED_PINS HEATER_BED_PIN, analogInputToDigitalPin(TEMP_BED_PIN),
665
+#else
666
+  #define _BED_PINS
667
+#endif
668
+
669
+#if PIN_EXISTS(TEMP_CHAMBER)
670
+  #define __CHAMBER_PINS CHAMBER_AUTO_FAN_PIN, analogInputToDigitalPin(TEMP_CHAMBER_PIN),
671
+#else
672
+  #define __CHAMBER_PINS
673
+#endif
674
+#if PIN_EXISTS(HEATER_CHAMBER)
675
+  #define _CHAMBER_PINS __CHAMBER_PINS HEATER_CHAMBER_PIN,
676
+#else
677
+  #define _CHAMBER_PINS
678
+#endif
679
+
669 680
 #ifndef HAL_SENSITIVE_PINS
670 681
   #define HAL_SENSITIVE_PINS
671 682
 #endif
672 683
 
673 684
 #define SENSITIVE_PINS { \
674 685
   _X_PINS _Y_PINS _Z_PINS _X2_PINS _Y2_PINS _Z2_PINS _Z3_PINS _Z4_PINS _Z_PROBE \
675
-  _E0_PINS _E1_PINS _E2_PINS _E3_PINS _E4_PINS _E5_PINS _E6_PINS _E7_PINS _BED_PINS \
686
+  _E0_PINS _E1_PINS _E2_PINS _E3_PINS _E4_PINS _E5_PINS _E6_PINS _E7_PINS \
676 687
   _H0_PINS _H1_PINS _H2_PINS _H3_PINS _H4_PINS _H5_PINS _H6_PINS _H7_PINS \
677 688
   _PS_ON _HEATER_BED _FAN0 _FAN1 _FAN2 _FAN3 _FAN4 _FAN5 _FAN6 _FAN7 _FANC \
678
-  HAL_SENSITIVE_PINS \
689
+  _BED_PINS _CHAMBER_PINS HAL_SENSITIVE_PINS \
679 690
 }

Loading…
Annulla
Salva