Browse Source

Sanity-check the chamber thermistor pin

Scott Lahteine 4 years ago
parent
commit
d8c3aed038

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

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

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

@@ -1770,9 +1770,13 @@ static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal
1770 1770
   #error "TEMP_SENSOR_7 shouldn't be set with only 1 HOTEND."
1771 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 1777
 #if TEMP_SENSOR_PROBE
1774 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 1780
   #elif !HAS_TEMP_ADC_PROBE
1777 1781
     #error "TEMP_PROBE_PIN must be an ADC pin."
1778 1782
   #elif !ENABLED(FIX_MOUNTED_PROBE)

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

@@ -59,8 +59,12 @@
59 59
   #define TEMP_BED_PIN                  P0_23_A0  // A0 (T0) - (67) - TEMP_BED_PIN
60 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 68
 #endif
65 69
 
66 70
 //

Loading…
Cancel
Save