Browse Source

Sanity-check the chamber thermistor pin

Scott Lahteine 5 years ago
parent
commit
d8c3aed038

+ 4
- 4
Marlin/src/inc/Conditionals_post.h View File

1692
 #if ENABLED(JOYSTICK)
1692
 #if ENABLED(JOYSTICK)
1693
   #if PIN_EXISTS(JOY_X)
1693
   #if PIN_EXISTS(JOY_X)
1694
     #define HAS_JOY_ADC_X 1
1694
     #define HAS_JOY_ADC_X 1
1695
-#endif
1695
+  #endif
1696
   #if PIN_EXISTS(JOY_Y)
1696
   #if PIN_EXISTS(JOY_Y)
1697
     #define HAS_JOY_ADC_Y 1
1697
     #define HAS_JOY_ADC_Y 1
1698
-#endif
1698
+  #endif
1699
   #if PIN_EXISTS(JOY_Z)
1699
   #if PIN_EXISTS(JOY_Z)
1700
     #define HAS_JOY_ADC_Z 1
1700
     #define HAS_JOY_ADC_Z 1
1701
-#endif
1701
+  #endif
1702
   #if PIN_EXISTS(JOY_EN)
1702
   #if PIN_EXISTS(JOY_EN)
1703
     #define HAS_JOY_ADC_EN 1
1703
     #define HAS_JOY_ADC_EN 1
1704
-#endif
1704
+  #endif
1705
 #endif
1705
 #endif
1706
 
1706
 
1707
 // Heaters
1707
 // Heaters

+ 5
- 1
Marlin/src/inc/SanityCheck.h View File

1770
   #error "TEMP_SENSOR_7 shouldn't be set with only 1 HOTEND."
1770
   #error "TEMP_SENSOR_7 shouldn't be set with only 1 HOTEND."
1771
 #endif
1771
 #endif
1772
 
1772
 
1773
+#if TEMP_SENSOR_CHAMBER && !PIN_EXISTS(TEMP_CHAMBER)
1774
+  #error "TEMP_SENSOR_CHAMBER requires TEMP_CHAMBER_PIN. Please add it to your configuration."
1775
+#endif
1776
+
1773
 #if TEMP_SENSOR_PROBE
1777
 #if TEMP_SENSOR_PROBE
1774
   #if !PIN_EXISTS(TEMP_PROBE)
1778
   #if !PIN_EXISTS(TEMP_PROBE)
1775
-    #error "TEMP_SENSOR_PROBE requires TEMP_PROBE_PIN."
1779
+    #error "TEMP_SENSOR_PROBE requires TEMP_PROBE_PIN. Please add it to your configuration."
1776
   #elif !HAS_TEMP_ADC_PROBE
1780
   #elif !HAS_TEMP_ADC_PROBE
1777
     #error "TEMP_PROBE_PIN must be an ADC pin."
1781
     #error "TEMP_PROBE_PIN must be an ADC pin."
1778
   #elif !ENABLED(FIX_MOUNTED_PROBE)
1782
   #elif !ENABLED(FIX_MOUNTED_PROBE)

+ 6
- 2
Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h View File

59
   #define TEMP_BED_PIN                  P0_23_A0  // A0 (T0) - (67) - TEMP_BED_PIN
59
   #define TEMP_BED_PIN                  P0_23_A0  // A0 (T0) - (67) - TEMP_BED_PIN
60
 #endif
60
 #endif
61
 
61
 
62
-#if HOTENDS == 1 && TEMP_SENSOR_PROBE
63
-  #define TEMP_PROBE_PIN              TEMP_1_PIN
62
+#if HOTENDS == 1
63
+  #if TEMP_SENSOR_PROBE
64
+    #define TEMP_PROBE_PIN            TEMP_1_PIN
65
+  #elif TEMP_SENSOR_CHAMBER
66
+    #define TEMP_CHAMBER_PIN          TEMP_1_PIN
67
+  #endif
64
 #endif
68
 #endif
65
 
69
 
66
 //
70
 //

Loading…
Cancel
Save